|
Openwings API Documentation (v1.1) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.openwings.identity.Attribute
This class is a universal attribute used throughout Openwings.
An attribute is defined as a name-value pair, where the name is
a String and the value is any serializable Java
Object
| Constructor Summary | |
Attribute()
Default constructor |
|
Attribute(java.lang.String name,
java.lang.Object value)
This simple constructor creates an Attribute with the
given name and value. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
This method overrides the default equals() implementation. |
java.lang.String |
getName()
This method returns the name / key for the attribute |
java.lang.Object |
getValue()
This method returns the value of the attribute |
int |
hashCode()
overrides default hashCode() method. |
void |
setName(java.lang.String name)
This method sets the name / key for the attribute |
void |
setValue(java.lang.Object value)
This method sets the value of the attribute |
java.lang.String |
toString()
overrides default toString() method. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Attribute()
public Attribute(java.lang.String name,
java.lang.Object value)
Attribute with the
given name and value.
name - name of the attributevalue - value of the attribute| Method Detail |
public java.lang.String getName()
public void setName(java.lang.String name)
name - name of the attributepublic java.lang.Object getValue()
public void setValue(java.lang.Object value)
public final boolean equals(java.lang.Object obj)
public final int hashCode()
public java.lang.String toString()
|
Openwings API Documentation (v1.1) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||