All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class PREDATOR.ADT.DataObject

java.lang.Object
   |
   +----PREDATOR.ADT.DataObject

public class DataObject
extends Object
Encapsulates all necessary object data for ADT display, querying, etc. For instance, an integer's object data will contain only its value. An image's object data will contain OID information, and a handle on an in-memory version of the image. All data members of an ObjectData class should be declared either public or protected so that subclasses can access the underlying data. In that sense, this class is a "client-side" copy of the server's binary data.

See Also:
CachingObject, MIMETypeObject, DisplayObject, CallbackObject

Variable Index

 o bytes
The binary format of this object.
 o COMPRESSED
Set if this object is in a compressed format.
 o IN_FIELD
Set if this object's entire value is in-field.
 o LITTLE_ENDIAN
Set if this object is in little-endian format.
 o NULL
Set if this object is a null value
 o SUSPENDED
Set if this object is a suspended value.

Constructor Index

 o DataObject()

Method Index

 o getBytes()
Gets the binary form of this object.
 o is(byte)
Checks to see if a flag is set in the status byte of the object.
 o setBytes(byte[])
Every data object is stored as a contiguous sequence of bytes at the server.
 o toString(ADTMetaInfo)
Provides a textual version of this object suitable for user-display.

Variables

 o NULL
 public static final byte NULL
Set if this object is a null value

 o SUSPENDED
 public static final byte SUSPENDED
Set if this object is a suspended value. If this is set, the object's suspended computation id is valid; otherwise, it is not.

 o IN_FIELD
 public static final byte IN_FIELD
Set if this object's entire value is in-field.

 o COMPRESSED
 public static final byte COMPRESSED
Set if this object is in a compressed format.

 o LITTLE_ENDIAN
 public static final byte LITTLE_ENDIAN
Set if this object is in little-endian format.

 o bytes
 protected byte bytes[]
The binary format of this object.

Constructors

 o DataObject
 public DataObject()

Methods

 o is
 public final boolean is(byte flag)
Checks to see if a flag is set in the status byte of the object. The status byte is the first byte of every object.

 o setBytes
 public void setBytes(byte bytes[])
Every data object is stored as a contiguous sequence of bytes at the server. This function assigns those bytes to the object.

Parameters:
bytes - The binary form of this object.
 o getBytes
 public byte[] getBytes()
Gets the binary form of this object.

 o toString
 public String toString(ADTMetaInfo MetaInfo)
Provides a textual version of this object suitable for user-display.

Parameters:
MetaInfo - The meta-info for this object
Returns:
A textual version of this object

All Packages  Class Hierarchy  This Package  Previous  Next  Index