|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | 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 |
Fields inherited from class context.arch.storage.Attribute |
ATTRIBUTE,
ATTRIBUTE_TYPE,
DEFAULT_TYPE,
DOUBLE,
FLOAT,
INT,
LONG,
SHORT,
STRING,
STRUCT |
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.String |
getName()
Returns the name of the stored attribute |
java.lang.String |
getType()
Returns the datatype of the attribute |
java.lang.Object |
getValue()
Returns the value of the stored attribute |
void |
setName(java.lang.String name)
Sets the name of an attribute |
void |
setType(java.lang.String type)
Sets the datatype of an 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 |
getSubAttributes,
setSubAttributes |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
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()
public void setName(java.lang.String name)
name
- Name of the attribute to storepublic void setValue(java.lang.Object value)
value
- Value of the attribute to storepublic void setType(java.lang.String type)
type
- Datatype of the attribute to storepublic java.lang.String getName()
public java.lang.Object getValue()
public java.lang.String getType()
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |