Package com.nt.udc.ndk.node
Class FloatField
java.lang.Object
com.nt.udc.ndk.node.DCField
com.nt.udc.ndk.node.FloatField
- All Implemented Interfaces:
Serializable
,Cloneable
The class FloatField.
It a subclass of DCField class
It deal with the float attribute
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFloatField
(int id, byte[] val) FloatField
(int id, float val) FloatField
(FieldKey key, float val) FloatField
(String id, byte[] val) FloatField
(String id, float val) -
Method Summary
Methods 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
-
FloatField
public FloatField(int id, float val) -
FloatField
-
FloatField
-
FloatField
public FloatField(int id, byte[] val) -
FloatField
-
-
Method Details
-
setValue
Sets the value of this FloatField from the given double- Throws:
NDKException
-
setValue
Sets the value of this FloatField from the given String- Throws:
NDKException
-
getType
public int getType() -
getDateValue
- Overrides:
getDateValue
in classDCField
- Throws:
ClassCastException
-
getDoubleValue
- Overrides:
getDoubleValue
in classDCField
- Throws:
ClassCastException
-
getFloatValue
- Overrides:
getFloatValue
in classDCField
- Throws:
ClassCastException
-
getByteValue
- Overrides:
getByteValue
in classDCField
- Throws:
ClassCastException
-
getShortValue
- Overrides:
getShortValue
in classDCField
- Throws:
ClassCastException
-
getIntValue
- Overrides:
getIntValue
in classDCField
- Throws:
ClassCastException
-
getLongValue
- Overrides:
getLongValue
in classDCField
- Throws:
ClassCastException
-
getStringValue
- Overrides:
getStringValue
in classDCField
- Throws:
ClassCastException
-