Package com.nt.udc.ndk.node
Class MapField
java.lang.Object
com.nt.udc.ndk.node.DCField
com.nt.udc.ndk.node.MapField
- All Implemented Interfaces:
Externalizable
,Serializable
,Cloneable
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMapField()
MapField
(int id, byte[] val) Deprecated.MapField
(FieldKey id, Collection fields) Deprecated.MapField
(String id, Collection fields) Deprecated.Use new MapField(FieldKey,Collection) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addFields
(Collection fieldList) getMap()
Deprecated.Use getFieldMap.int
getType()
iterator()
void
readExternal
(ObjectInput obj_in) void
removeField
(DCField field) void
removeField
(String key) void
setValue
(byte[] newVal) Sets the value of this DCField to what is contained invalueBytes
void
writeExternal
(ObjectOutput obj_out) Methods inherited from class com.nt.udc.ndk.node.DCField
clone, create, dup, equals, equalsValue, getBytes, getBytesValue, getByteValue, getDateValue, getDCField, getDCField, getDCField, getDoubleValue, getFloatValue, getID, getIntValue, getKey, getLength, getLongValue, getShortValue, getStaticAttrLength, init, init, init, isEmpty, isVarLength, makeAttrfromBytes, makeAttrfromBytes, makeAttrfromBytes, makeAttrfromBytes, makeAttrfromStream, readValueFromStream, setID, setID, setKey, setType, toString, writeValueToStream
-
Field Details
-
LENGTH
public static final int LENGTH- See Also:
-
-
Constructor Details
-
MapField
public MapField() -
MapField
-
MapField
-
MapField
-
MapField
Deprecated.Use new MapField(FieldKey,Collection) -
MapField
Deprecated. -
MapField
Deprecated.
-
-
Method Details
-
setValue
Description copied from class:DCField
Sets the value of this DCField to what is contained invalueBytes
NOTE: Caveat Machinator (Engineer beware)
At this time, there is no validation of the byte array passed in to this method. The developer should ensure that the bytes used to create this DCField object are appropriate for the specific data type. For example, a byte[] consisting of 7 bytes should not be used to create an IntField object.- Overrides:
setValue
in classDCField
- Throws:
NDKException
-
removeField
-
removeField
-
addField
-
addFields
- Parameters:
fieldList
- Collection of DCField objects to add to map
-
getFieldMap
-
getMap
Deprecated.Use getFieldMap. CAUTION: Keys of getFieldMap are FieldKey objects instead of String objects. -
getType
public int getType() -
getStringValue
- Overrides:
getStringValue
in classDCField
-
iterator
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-