Package com.nt.udc.ndk.node
Class ByteField
java.lang.Object
com.nt.udc.ndk.node.DCField
com.nt.udc.ndk.node.ByteField
- All Implemented Interfaces:
Serializable
,Cloneable
The class ByteField.
It is a subclass of DCField class
It deals with the byte attribute
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionByteField
(int id, byte val) Deprecated.use new ByteField(FieldKey key,byte val)ByteField
(int id, byte[] val) Deprecated.use new ByteField(FieldKey) followed by setValue(byte[]);Deprecated.use new ByteField(FieldKey key,byte val)Deprecated.use new ByteField(FieldKey) followed by setValue(byte[]); -
Method Summary
Modifier and TypeMethodDescriptionbyte
The method returns the byte array of valueThe method returns date valuedouble
The method returns bouble valuefloat
The method returns float valueint
The method returns integer valuelong
The method returns long valueshort
The method return short valueThe methods return string valueint
getType()
void
setValue
(byte b) Sets the value of this ByteField from the given bytevoid
Sets the value of this ByteField from the given StringMethods inherited from class com.nt.udc.ndk.node.DCField
clone, create, dup, equals, equalsValue, getBytes, getBytesValue, getDCField, getDCField, getDCField, getID, getKey, getLength, 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
-
ByteField
public ByteField() -
ByteField
-
ByteField
-
ByteField
Deprecated.use new ByteField(FieldKey key,byte val) -
ByteField
Deprecated.use new ByteField(FieldKey key,byte val) -
ByteField
Deprecated.use new ByteField(FieldKey) followed by setValue(byte[]); -
ByteField
Deprecated.use new ByteField(FieldKey) followed by setValue(byte[]);
-
-
Method Details
-
setValue
Sets the value of this ByteField from the given byte- Throws:
NDKException
-
setValue
Sets the value of this ByteField from the given String- Throws:
NDKException
-
getType
public int getType() -
getByteValue
The method returns the byte array of value- Overrides:
getByteValue
in classDCField
- Throws:
ClassCastException
-
getDateValue
The method returns date value- Overrides:
getDateValue
in classDCField
- Throws:
ClassCastException
-
getDoubleValue
The method returns bouble value- Overrides:
getDoubleValue
in classDCField
- Throws:
ClassCastException
-
getFloatValue
The method returns float value- Overrides:
getFloatValue
in classDCField
- Throws:
ClassCastException
-
getIntValue
The method returns integer value- Overrides:
getIntValue
in classDCField
- Throws:
ClassCastException
-
getLongValue
The method returns long value- Overrides:
getLongValue
in classDCField
- Throws:
ClassCastException
-
getShortValue
The method return short value- Overrides:
getShortValue
in classDCField
- Throws:
ClassCastException
-
getStringValue
The methods return string value- Overrides:
getStringValue
in classDCField
- Throws:
ClassCastException
-