public class Attribute extends Object implements Serializable
Constructor and Description |
---|
Attribute()
Zero-arg constructor for an Attribute.
|
Attribute(String name,
Serializable value)
Constructs an Attribute object which associates the given attribute name with the given value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getName()
Returns a String containing the name of the attribute.
|
Serializable |
getValue()
Returns the serializable value of this attribute.
|
int |
hashCode() |
void |
setName(String name)
Set the name of this attribute.
|
void |
setValue(Serializable value)
Set the value of this attribute.
|
String |
toString() |
public Attribute()
public Attribute(String name, Serializable value)
name
- A String containing the name of the attribute to be created. Cannot be null.value
- The value which is assigned to the attribute.public void setName(String name)
name
- A String containing the name to give to this attribute.public String getName()
public void setValue(Serializable value)
value
- The serializable value to give to this attribute.public Serializable getValue()
Copyright (c) 2017, SAS Institute Inc., Cary, NC, USA