Class MappingTable


  • public class MappingTable
    extends Object
    Mapping table
    • Constructor Detail

      • MappingTable

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

        public MappingTable​(org.netxms.base.NXCPMessage msg)
        Create mapping table object from NXCP message
        Parameters:
        msg - NXCP message
    • Method Detail

      • fillMessage

        public void fillMessage​(org.netxms.base.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
      • getGuid

        public UUID getGuid()
        Returns:
        the guid