Package com.nt.udc.ndk.node
Class ObjectField
java.lang.Object
com.nt.udc.ndk.node.DCField
com.nt.udc.ndk.node.ObjectField
- All Implemented Interfaces:
Externalizable
,Serializable
,Cloneable
The class ObjectField.
It is a sub-class of DCField.
It deal with the OBJECT attribute.
NOTE - VERY IMPORTANT
This is a class will be used to contain an object of any class
to be written into a NAR as a NAR OBJECT primitive. The object
which is stored in this class (via the setObject method or the
constructor that takes an Object as an input parameter) must be
Externalizable.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionObjectField
(int id, byte[] inValues) ObjectField
(int id, Externalizable object) ObjectField
(FieldKey id, byte[] inValues) ObjectField
(Externalizable object) ObjectField
(String id, byte[] inValues) ObjectField
(String id, Externalizable object) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
byte
double
float
int
int
long
short
int
getType()
void
readExternal
(ObjectInput obj_in) void
setObject
(Externalizable object) void
setObjectWOupdate
(Externalizable object) toString()
void
void
void
writeExternal
(ObjectOutput obj_out) Methods inherited from class com.nt.udc.ndk.node.DCField
clone, create, dup, equals, equalsValue, getBytes, getDCField, getDCField, getDCField, getID, getKey, getStaticAttrLength, init, init, init, isEmpty, isVarLength, makeAttrfromBytes, makeAttrfromBytes, makeAttrfromBytes, makeAttrfromBytes, makeAttrfromStream, readValueFromStream, setID, setID, setKey, setType, setValue, writeValueToStream
-
Field Details
-
LENGTH
public static final int LENGTH- See Also:
-
-
Constructor Details
-
ObjectField
public ObjectField() -
ObjectField
-
ObjectField
-
ObjectField
-
ObjectField
public ObjectField(int id, byte[] inValues) -
ObjectField
-
ObjectField
-
-
Method Details
-
setObject
-
setObjectWOupdate
-
getObject
-
updateObject
public void updateObject() -
updateBytes
public void updateBytes() -
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
getType
public int getType() -
getBytesValue
- Overrides:
getBytesValue
in classDCField
- Returns:
- a byte array containing the value of this DCField
- Throws:
ClassCastException
-
getByteValue
- Overrides:
getByteValue
in classDCField
- Throws:
ClassCastException
-
getDateValue
- Overrides:
getDateValue
in classDCField
- Throws:
ClassCastException
-
getDoubleValue
- Overrides:
getDoubleValue
in classDCField
- Throws:
ClassCastException
-
getFloatValue
- Overrides:
getFloatValue
in classDCField
- Throws:
ClassCastException
-
getIntValue
- Overrides:
getIntValue
in classDCField
- Throws:
ClassCastException
-
getLongValue
- Overrides:
getLongValue
in classDCField
- Throws:
ClassCastException
-
getShortValue
- Overrides:
getShortValue
in classDCField
- Throws:
ClassCastException
-
getStringValue
- Overrides:
getStringValue
in classDCField
- Throws:
ClassCastException
-
toString
-
getLength
public int getLength()
-