Package org.netxms.client.maps.configs
Class DCIImageConfiguration
- java.lang.Object
-
- org.netxms.client.maps.configs.DCIImageConfiguration
-
public class DCIImageConfiguration extends Object
Base class for DCI image configuration
-
-
Constructor Summary
Constructors Constructor Description DCIImageConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainRuleList()static DCIImageConfigurationcreateFromXml(String xml)Create DCI list object from XML documentStringcreateXml()Create XML from configuration.UUIDgetCorrectImage(DciValue dciValue)Checks is any rule applicable on last value All except line and not like are compared with help of T.compateTo(T).SingleDciConfiggetDci()DCIImageRule[]getDciRuleArray()UUIDgetDefaultImage()List<DCIImageRule>getRulesAsList()Returns DCI array as a listvoidsetDci(SingleDciConfig dci)voidsetDciRuleArray(DCIImageRule[] dciRuleList)voidsetDefaultImage(UUID defaultImage)
-
-
-
Field Detail
-
OP_LE
public static final int OP_LE
- See Also:
- Constant Field Values
-
OP_LE_EQ
public static final int OP_LE_EQ
- See Also:
- Constant Field Values
-
OP_EQ
public static final int OP_EQ
- See Also:
- Constant Field Values
-
OP_GT_EQ
public static final int OP_GT_EQ
- See Also:
- Constant Field Values
-
OP_GT
public static final int OP_GT
- See Also:
- Constant Field Values
-
OP_NE
public static final int OP_NE
- See Also:
- Constant Field Values
-
OP_LIKE
public static final int OP_LIKE
- See Also:
- Constant Field Values
-
OP_NOTLIKE
public static final int OP_NOTLIKE
- See Also:
- Constant Field Values
-
-
Method Detail
-
createFromXml
public static DCIImageConfiguration createFromXml(String xml) throws Exception
Create DCI list object from XML document- Parameters:
xml- XML document- Returns:
- deserialized object
- Throws:
Exception- if the object cannot be fully deserialized
-
createXml
public String createXml() throws Exception
Create XML from configuration.- Returns:
- XML document
- Throws:
Exception- if the schema for the object is not valid
-
getDciRuleArray
public DCIImageRule[] getDciRuleArray()
- Returns:
- the dciRuleList
-
setDciRuleArray
public void setDciRuleArray(DCIImageRule[] dciRuleList)
- Parameters:
dciRuleList- the dciRuleList to set
-
getRulesAsList
public List<DCIImageRule> getRulesAsList()
Returns DCI array as a list- Returns:
- TODO
-
getDci
public SingleDciConfig getDci()
- Returns:
- the dci
-
setDci
public void setDci(SingleDciConfig dci)
- Parameters:
dci- the dci to set
-
getDefaultImage
public UUID getDefaultImage()
- Returns:
- the defaultImage
-
setDefaultImage
public void setDefaultImage(UUID defaultImage)
- Parameters:
defaultImage- the defaultImage to set
-
containRuleList
public boolean containRuleList()
-
getCorrectImage
public UUID getCorrectImage(DciValue dciValue)
Checks is any rule applicable on last value All except line and not like are compared with help of T.compateTo(T). Like and not like values can be given with regular expressions so they are always compared as a strings and with help of Glob.matchIgnoreCase(pattern, string).- Returns:
- correct image according to last value
-
-