Package com.nt.udc.ndk.node
Class SecondsField
java.lang.Object
com.nt.udc.ndk.node.DCField
com.nt.udc.ndk.node.SecondsField
- All Implemented Interfaces:
Serializable
,Cloneable
The class SecondsField.
It is a sub-class of DCField
It deal with the Seconds attribute
This attribute's value represents the number of seconds since
Jan 1, 1970. The standard UNIX time value.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSecondsField
(int val) SecondsField
(int id, byte[] val) SecondsField
(int id, int val) SecondsField
(FieldKey key, int val) SecondsField
(String id, byte[] val) SecondsField
(String id, int 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
-
SecondsField
public SecondsField(int val) -
SecondsField
public SecondsField(int id, byte[] val) -
SecondsField
-
SecondsField
public SecondsField(int id, int val) -
SecondsField
-
SecondsField
-
-
Method Details
-
setValue
Sets the value of this SecondsField from the given int value- Throws:
NDKException
-
getType
public int getType() -
getDateValue
- Overrides:
getDateValue
in classDCField
- Throws:
ClassCastException
-
getDoubleValue
- Overrides:
getDoubleValue
in classDCField
- Throws:
ClassCastException
-
getByteValue
- Overrides:
getByteValue
in classDCField
- Throws:
ClassCastException
-
getFloatValue
- Overrides:
getFloatValue
in classDCField
- Throws:
ClassCastException
-
getIntValue
- Overrides:
getIntValue
in classDCField
- Throws:
ClassCastException
-
getLongValue
- Overrides:
getLongValue
in classDCField
- Throws:
ClassCastException
-
getShortValue
- Overrides:
getShortValue
in classDCField
- Throws:
ClassCastException
-
getStringValue
- Overrides:
getStringValue
in classDCField
- Throws:
ClassCastException
-