|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--context.arch.storage.Attribute
This class is a container for an attribute name, subAttributes (used for structures - STRUCT) and type.
Field Summary | |
static java.lang.String |
ATTRIBUTE
Tag for an attribute |
static java.lang.String |
ATTRIBUTE_TYPE
Tag for an attribute data type |
static java.lang.String |
DEFAULT_TYPE
Tag for default attribute type |
static java.lang.String |
DOUBLE
Tag for DOUBLE datatype |
static java.lang.String |
FLOAT
Tag for FLOAT datatype |
static java.lang.String |
INT
Tag for INT datatype |
static java.lang.String |
LONG
Tag for LONG datatype |
static java.lang.String |
SHORT
Tag for SHORT datatype |
static java.lang.String |
STRING
Tag for STRING datatype |
static java.lang.String |
STRUCT
Tag for structure type |
Constructor Summary | |
Attribute()
Empty constructor |
|
Attribute(DataObject attribute)
Constructor that takes a DataObject as input. |
|
Attribute(java.lang.String name)
Constructor that takes only a name |
|
Attribute(java.lang.String name,
Attributes attributes,
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 |
Attributes |
getSubAttributes()
Returns the subAttributes of the stored attribute |
java.lang.String |
getType()
Returns the datatype of the attribute |
void |
setName(java.lang.String name)
Sets the name of an attribute |
void |
setSubAttributes(Attributes attributes)
Sets the subAttributes of this attribute |
void |
setType(java.lang.String type)
Sets the datatype 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 java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String ATTRIBUTE_TYPE
public static final java.lang.String ATTRIBUTE
public static final java.lang.String DEFAULT_TYPE
public static final java.lang.String STRUCT
public static final java.lang.String LONG
public static final java.lang.String DOUBLE
public static final java.lang.String FLOAT
public static final java.lang.String SHORT
public static final java.lang.String INT
public static final java.lang.String STRING
Constructor Detail |
public Attribute()
public Attribute(java.lang.String name)
name
- Name of attribute to storepublic Attribute(java.lang.String name, Attributes attributes, java.lang.String type)
name
- Name of attribute to storeattributes
- subAttributes of this attributetype
- Datatype of attribute to storepublic Attribute(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 setSubAttributes(Attributes attributes)
attributes
- subAttributes of the attribute to storepublic void setType(java.lang.String type)
type
- Datatype of the attribute to storepublic java.lang.String getName()
public Attributes getSubAttributes()
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 |