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 TypeMethodDescriptionvoidvoidaddFields(Collection fieldList) getMap()Deprecated.Use getFieldMap.intgetType()iterator()voidreadExternal(ObjectInput obj_in) voidremoveField(DCField field) voidremoveField(String key) voidsetValue(byte[] newVal) Sets the value of this DCField to what is contained invalueBytesvoidwriteExternal(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:DCFieldSets the value of this DCField to what is contained invalueBytesNOTE: 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:
setValuein 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:
getStringValuein classDCField
-
iterator
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-