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 TypeMethodDescriptionbyteThe method returns the byte array of valueThe method returns date valuedoubleThe method returns bouble valuefloatThe method returns float valueintThe method returns integer valuelongThe method returns long valueshortThe method return short valueThe methods return string valueintgetType()voidsetValue(byte b) Sets the value of this ByteField from the given bytevoidSets 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:
getByteValuein classDCField- Throws:
ClassCastException
-
getDateValue
The method returns date value- Overrides:
getDateValuein classDCField- Throws:
ClassCastException
-
getDoubleValue
The method returns bouble value- Overrides:
getDoubleValuein classDCField- Throws:
ClassCastException
-
getFloatValue
The method returns float value- Overrides:
getFloatValuein classDCField- Throws:
ClassCastException
-
getIntValue
The method returns integer value- Overrides:
getIntValuein classDCField- Throws:
ClassCastException
-
getLongValue
The method returns long value- Overrides:
getLongValuein classDCField- Throws:
ClassCastException
-
getShortValue
The method return short value- Overrides:
getShortValuein classDCField- Throws:
ClassCastException
-
getStringValue
The methods return string value- Overrides:
getStringValuein classDCField- Throws:
ClassCastException
-