|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.bristol.star.cdf.AttributeEntry
public class AttributeEntry
Represents an entry in a global or variable attribute.
Constructor Summary | |
---|---|
AttributeEntry(DataType dataType,
java.lang.Object rawValue,
int nitem)
Constructor. |
Method Summary | |
---|---|
DataType |
getDataType()
Returns the data type of this entry. |
java.lang.Object |
getItem(int itemIndex)
Returns an object representing one of the items in this entry. |
int |
getItemCount()
Returns the number of items in this entry. |
java.lang.Object |
getRawValue()
Returns the array object storing the original representation of the object in the CDF. |
java.lang.Object |
getShapedValue()
Returns the value of this entry as a convenient object. |
java.lang.String |
toString()
Formats the value of this entry as a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AttributeEntry(DataType dataType, java.lang.Object rawValue, int nitem)
dataType
- data typerawValue
- array object storing original representation
of the object in the CDF (array of primitives or
Strings)nitem
- number of items represented by the arrayMethod Detail |
---|
public DataType getDataType()
public java.lang.Object getRawValue()
public java.lang.Object getShapedValue()
getItem(0)
,
and if the item count is >1 it's the same as the raw value.
public int getItemCount()
public java.lang.Object getItem(int itemIndex)
itemIndex
- item index
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |