Package com.nt.udc.ndk.node
Class LongField
java.lang.Object
com.nt.udc.ndk.node.DCField
com.nt.udc.ndk.node.LongField
- All Implemented Interfaces:
Serializable
,Cloneable
The class LongField.
It is a sub-class of DCField
It deal with the long attributes
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.nt.udc.ndk.node.DCField
clone, create, dup, equals, equalsValue, getBytes, getBytesValue, getByteValue, getDCField, getDCField, getDCField, getFloatValue, getID, getIntValue, getKey, getLength, getShortValue, getStaticAttrLength, init, init, init, isEmpty, isVarLength, makeAttrfromBytes, makeAttrfromBytes, makeAttrfromBytes, makeAttrfromBytes, makeAttrfromStream, readValueFromStream, setID, setID, setKey, setType, setValue, toString, writeValueToStream
-
Field Details
-
LENGTH
public static final int LENGTH- See Also:
-
-
Constructor Details
-
LongField
public LongField() -
LongField
-
LongField
-
LongField
Deprecated.use LongField(FieldKey,long) -
LongField
Deprecated.use LongField(FieldKey,long) -
LongField
Deprecated.use LongField(FieldKey) followed by setValue(byte[]) -
LongField
Deprecated.use LongField(FieldKey) followed by setValue(byte[])
-
-
Method Details
-
setValue
public void setValue(byte[] val, int offset, int len) -
setValue
Sets the value of this LongField from the given long value- Throws:
NDKException
-
setValue
Sets the value of this LongField from the given String- Throws:
NDKException
-
getType
public int getType() -
getDateValue
- Overrides:
getDateValue
in classDCField
- Throws:
ClassCastException
-
getDoubleValue
- Overrides:
getDoubleValue
in classDCField
- Throws:
ClassCastException
-
getLongValue
- Overrides:
getLongValue
in classDCField
- Throws:
ClassCastException
-
getStringValue
- Overrides:
getStringValue
in classDCField
- Throws:
ClassCastException
-