|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object context.arch.storage.Attribute context.arch.storage.AttributeNameValue
This class is a container for an attribute name, value and type.
Field Summary | |
static java.lang.String |
ATTRIBUTE_NAME
Tag for an attribute name |
static java.lang.String |
ATTRIBUTE_NAME_VALUE
Tag for an attribute name/value pair |
static java.lang.String |
ATTRIBUTE_VALUE
Tag for an attribute value |
protected java.lang.Object |
value
|
Fields inherited from class context.arch.storage.Attribute |
ATTRIBUTE, ATTRIBUTE_TYPE, attributes, DEFAULT_TYPE, DOUBLE, FLOAT, INT, LONG, name, SHORT, STRING, STRUCT, type |
Constructor Summary | |
AttributeNameValue()
Empty constructor |
|
AttributeNameValue(DataObject attribute)
Constructor that takes a DataObject as input. |
|
AttributeNameValue(java.lang.String name)
Constructor that takes only a name |
|
AttributeNameValue(java.lang.String name,
java.lang.Object value,
java.lang.String type)
Constructor that takes a name, value and type |
Method Summary | |
java.lang.Object |
getValue()
Returns the value of the stored attribute |
void |
setValue(java.lang.Object value)
Sets the value of an attribute |
DataObject |
toDataObject()
Converts this object to a DataObject. |
java.lang.String |
toString()
A printable version of this class. |
Methods inherited from class context.arch.storage.Attribute |
compareTo, getName, getSubAttributes, getType, setName, setSubAttributes, setType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.Object value
public static final java.lang.String ATTRIBUTE_NAME_VALUE
public static final java.lang.String ATTRIBUTE_NAME
public static final java.lang.String ATTRIBUTE_VALUE
Constructor Detail |
public AttributeNameValue()
public AttributeNameValue(java.lang.String name)
name
- Name of attribute to storepublic AttributeNameValue(java.lang.String name, java.lang.Object value, java.lang.String type)
name
- Name of attribute to storevalue
- Value of attribute to storetype
- Datatype of attribute to storepublic AttributeNameValue(DataObject attribute)
attribute
- DataObject containing the attribute infoMethod Detail |
public DataObject toDataObject()
toDataObject
in class Attribute
public void setValue(java.lang.Object value)
value
- Value of the attribute to storepublic java.lang.Object getValue()
public java.lang.String toString()
toString
in class Attribute
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |