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[]bytedoublefloatintintlongshortintgetType()voidreadExternal(ObjectInput obj_in) voidsetObject(Externalizable object) voidsetObjectWOupdate(Externalizable object) toString()voidvoidvoidwriteExternal(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:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
getType
public int getType() -
getBytesValue
- Overrides:
getBytesValuein classDCField- Returns:
- a byte array containing the value of this DCField
- Throws:
ClassCastException
-
getByteValue
- Overrides:
getByteValuein classDCField- Throws:
ClassCastException
-
getDateValue
- Overrides:
getDateValuein classDCField- Throws:
ClassCastException
-
getDoubleValue
- Overrides:
getDoubleValuein classDCField- Throws:
ClassCastException
-
getFloatValue
- Overrides:
getFloatValuein classDCField- Throws:
ClassCastException
-
getIntValue
- Overrides:
getIntValuein classDCField- Throws:
ClassCastException
-
getLongValue
- Overrides:
getLongValuein classDCField- Throws:
ClassCastException
-
getShortValue
- Overrides:
getShortValuein classDCField- Throws:
ClassCastException
-
getStringValue
- Overrides:
getStringValuein classDCField- Throws:
ClassCastException
-
toString
-
getLength
public int getLength()
-