Class MapField

java.lang.Object
com.nt.udc.ndk.node.DCField
com.nt.udc.ndk.node.MapField
All Implemented Interfaces:
Externalizable, Serializable, Cloneable

public class MapField extends DCField implements Externalizable
See Also:
  • Field Details

  • Constructor Details

    • MapField

      public MapField()
    • MapField

      public MapField(FieldKey key)
    • MapField

      public MapField(FieldKey id, Collection fields)
    • MapField

      public MapField(FieldKey key, byte[] val)
    • MapField

      @Deprecated public MapField(String id, Collection fields)
      Deprecated.
      Use new MapField(FieldKey,Collection)
    • MapField

      @Deprecated public MapField(int id, byte[] val)
      Deprecated.
    • MapField

      @Deprecated public MapField(String id, byte[] val)
      Deprecated.
  • Method Details

    • setValue

      public void setValue(byte[] newVal) throws NDKException
      Description copied from class: DCField
      Sets the value of this DCField to what is contained in valueBytes

      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 class DCField
      Throws:
      NDKException
    • removeField

      public void removeField(DCField field)
    • removeField

      public void removeField(String key)
    • addField

      public void addField(DCField field)
    • addFields

      public void addFields(Collection fieldList)
      Parameters:
      fieldList - Collection of DCField objects to add to map
    • getFieldMap

      public Map getFieldMap()
    • getMap

      @Deprecated public Map getMap()
      Deprecated.
      Use getFieldMap. CAUTION: Keys of getFieldMap are FieldKey objects instead of String objects.
    • getType

      public int getType()
      Overrides:
      getType in class DCField
      Returns:
      the type for this DCField object
    • getStringValue

      public String getStringValue()
      Overrides:
      getStringValue in class DCField
    • iterator

      public Iterator iterator()
    • readExternal

      public void readExternal(ObjectInput obj_in) throws IOException, ClassNotFoundException
      Specified by:
      readExternal in interface Externalizable
      Throws:
      IOException
      ClassNotFoundException
    • writeExternal

      public void writeExternal(ObjectOutput obj_out) throws IOException
      Specified by:
      writeExternal in interface Externalizable
      Throws:
      IOException