|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sas.hls.common.Attribute
public class Attribute
A local representation of an attribute defined on an object.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |