|
||||||||||
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 | |
---|---|
Attribute |
clone()
Create and return a copy of this object. |
boolean |
equals(Object obj)
Indicate whether some other object is "equal to" this one. |
String |
getName()
Returns a String containing the name of the attribute. |
Serializable |
getValue()
Returns the serializable value of this attribute. |
int |
hashCode()
Return a hash code value for the object. |
void |
setName(String name)
Set the name of this attribute. |
void |
setValue(Serializable value)
Set the value of this attribute. |
String |
toString()
Return a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
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 Attribute clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Object.clone()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |