public class MappingTable extends Object
Modifier and Type | Field and Description |
---|---|
protected List<MappingTableEntry> |
data |
protected String |
description |
protected int |
flags |
protected UUID |
guid |
protected Map<String,String> |
hashMap |
protected int |
id |
protected String |
name |
static int |
NUMERIC_KEYS
Flag which indicates that mapping table contain numeric keys.
|
Constructor and Description |
---|
MappingTable(org.netxms.base.NXCPMessage msg)
Create mapping table object from NXCP message
|
MappingTable(String name,
String description)
Create new empty mapping table with ID 0.
|
Modifier and Type | Method and Description |
---|---|
void |
buildHash()
Build has for fast lookup
|
void |
fillMessage(org.netxms.base.NXCPMessage msg)
Fill NXCP message with table's data
|
List<MappingTableEntry> |
getData() |
String |
getDescription() |
int |
getFlags() |
UUID |
getGuid() |
int |
getId() |
String |
getName() |
String |
lookup(String key) |
void |
setDescription(String description) |
void |
setFlags(int flags) |
void |
setName(String name) |
public static final int NUMERIC_KEYS
protected int id
protected UUID guid
protected String name
protected String description
protected int flags
protected List<MappingTableEntry> data
public MappingTable(String name, String description)
name
- description
- public MappingTable(org.netxms.base.NXCPMessage msg)
msg
- NXCP messagepublic void fillMessage(org.netxms.base.NXCPMessage msg)
msg
- NXCP messagepublic void buildHash()
public final String getName()
public final void setName(String name)
name
- the name to setpublic final String getDescription()
public final void setDescription(String description)
description
- the description to setpublic final int getFlags()
public final void setFlags(int flags)
flags
- the flags to setpublic final int getId()
public final List<MappingTableEntry> getData()
public UUID getGuid()
Copyright © 2015. All rights reserved.