public class AttributeEntry
extends java.lang.Object
Constructor and Description |
---|
AttributeEntry(DataType dataType,
java.lang.Object rawValue,
int nitem)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 arraypublic 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 indexpublic java.lang.String toString()
toString
in class java.lang.Object