Class MappingTable

java.lang.Object
org.netxms.client.mt.MappingTable

public class MappingTable extends Object
Mapping table
  • Field Details

    • NUMERIC_KEYS

      public static final int NUMERIC_KEYS
      Flag which indicates that mapping table contain numeric keys.
      See Also:
    • id

      protected int id
    • guid

      protected UUID guid
    • name

      protected String name
    • description

      protected String description
    • flags

      protected int flags
    • data

      protected List<MappingTableEntry> data
    • hashMap

      protected Map<String,String> hashMap
  • Constructor Details

    • MappingTable

      public MappingTable(String name, String description)
      Create new empty mapping table with ID 0.
      Parameters:
      name - mapping table name
      description - mapping table description
    • MappingTable

      public MappingTable(NXCPMessage msg)
      Create mapping table object from NXCP message
      Parameters:
      msg - NXCP message
    • MappingTable

      public MappingTable(MappingTable src)
      Copy constructor
      Parameters:
      src - source mapping table
  • Method Details

    • fillMessage

      public void fillMessage(NXCPMessage msg)
      Fill NXCP message with table's data
      Parameters:
      msg - NXCP message
    • lookup

      public String lookup(String key)
      Lookup value in mapping table
      Parameters:
      key - key value
      Returns:
      value for given key
    • buildHash

      public void buildHash()
      Build has for fast lookup
    • getName

      public final String getName()
      Returns:
      the name
    • setName

      public final void setName(String name)
      Parameters:
      name - the name to set
    • getDescription

      public final String getDescription()
      Returns:
      the description
    • setDescription

      public final void setDescription(String description)
      Parameters:
      description - the description to set
    • getFlags

      public final int getFlags()
      Returns:
      the flags
    • setFlags

      public final void setFlags(int flags)
      Parameters:
      flags - the flags to set
    • getId

      public final int getId()
      Returns:
      the id
    • getData

      public final List<MappingTableEntry> getData()
      Returns:
      the data
    • getGuid

      public UUID getGuid()
      Returns:
      the guid