|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object
|
+--com.sas.collection.hlist.HListItem
|
+--com.sas.collection.hlist.ArrayItem
An item for storing an array in an HList. Array support is new in release 1.2 and on the SAS server SCL lists for 8.0. Arrays can be arrays of Java primitive types: boolean, byte, char, short, int, long, float, double, or an array of String, or an array of HList lists. Arrays of objects (other than java.lang.String) are not allowed. Note that if you wish to reference SCL objects, you may use an array of object ids.
HList, Serialized Form| Field Summary | |
protected Object |
array
The array value. |
static byte |
itemType
The code used to mark a ArrayItem in IO_VERSION_3 and greater I/O streams. |
static String |
RB_KEY
|
static char |
streamCode
The code used to mark a ArrayItem in I/O streams. |
| Fields inherited from class com.sas.collection.hlist.HListItem |
classTable, ITEM_ATTR_MASK, ITEM_HAS_ATTRS, ITEM_HAS_NAME, name |
| Constructor Summary | |
ArrayItem()
Default constructor, the array value null. |
|
ArrayItem(ArrayItem item)
Copy constructor, the array value is null |
|
ArrayItem(Object array)
Value constructor |
|
ArrayItem(Object array,
String name)
Value constructor |
|
ArrayItem(Object array,
String name,
short attributes)
Value constructor |
|
| Method Summary | |
boolean |
equals(Object other)
|
Object |
getValue()
Return the object value |
protected byte |
itemType()
Return the code to identify this data type in data streams. |
void |
read(DataInputStream stream,
StreamEnv env)
Read an array item from the input stream. |
void |
setValue(Object object)
Set the object value |
protected char |
streamCode()
Return the stream code. |
Object |
toObject()
Return the array of the item, as an object. |
String |
toString()
convert an item to a string |
void |
write(DataOutputStream stream,
StreamEnv env)
Write an array item from the output stream. |
| Methods inherited from class com.sas.collection.hlist.HListItem |
add, add, clone, getName, hasAttribute, hasAttributes, intern, newFromStream, newFromStream, read, readString, readUTF, setAttribute, setAttributes, setAttributes, setName, write, writeString |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String RB_KEY
protected Object array
public static final char streamCode
public static final byte itemType
| Constructor Detail |
public ArrayItem()
public ArrayItem(ArrayItem item)
item - another ArrayItempublic ArrayItem(Object array)
array - the object to store in the item. This may be null.
public ArrayItem(Object array,
String name)
array - the object to store in the item. This may be null.name - the name of this item
public ArrayItem(Object array,
String name,
short attributes)
array - the object to store in the item. This may be null.name - the name of this itemattributes - the item attributes| Method Detail |
public Object getValue()
public void setValue(Object object)
object - the new object valuepublic boolean equals(Object other)
equals in class Objectprotected final char streamCode()
streamCode in class HListItemstreamCodeprotected final byte itemType()
itemType in class HListItemitemTypepublic final Object toObject()
getValue()toObject in class HListItempublic String toString()
toString in class HListItem
public void write(DataOutputStream stream,
StreamEnv env)
throws IOException
write in class HListItemstream - a stream where a HList is being written.IOException - if there is an error
writing to the stream.
public void read(DataInputStream stream,
StreamEnv env)
throws IOException
read in class HListItemstream - a stream where a HList has been written.IOException - if there is an error
reading from the stream.
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||