Package org.netxms.client.maps.configs
Class DCIImageConfiguration
java.lang.Object
org.netxms.client.maps.configs.DCIImageConfiguration
Base class for DCI image configuration
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Check if this configuration has rule list.Create XML from configuration.getCorrectImage
(DciValue dciValue) Checks is any rule applicable on last value.getDci()
Returns DCI array as a listvoid
setDci
(SingleDciConfig dci) void
setDciRuleArray
(DCIImageRule[] dciRuleList) void
setDefaultImage
(UUID defaultImage)
-
Field Details
-
OP_LE
public static final int OP_LE- See Also:
-
OP_LE_EQ
public static final int OP_LE_EQ- See Also:
-
OP_EQ
public static final int OP_EQ- See Also:
-
OP_GT_EQ
public static final int OP_GT_EQ- See Also:
-
OP_GT
public static final int OP_GT- See Also:
-
OP_NE
public static final int OP_NE- See Also:
-
OP_LIKE
public static final int OP_LIKE- See Also:
-
OP_NOTLIKE
public static final int OP_NOTLIKE- See Also:
-
-
Constructor Details
-
DCIImageConfiguration
public DCIImageConfiguration()
-
-
Method Details
-
createXml
Create XML from configuration.- Returns:
- XML document
- Throws:
Exception
- if the schema for the object is not valid
-
getDciRuleArray
- Returns:
- the dciRuleList
-
setDciRuleArray
- Parameters:
dciRuleList
- the dciRuleList to set
-
getRulesAsList
Returns DCI array as a list- Returns:
- TODO
-
getDci
- Returns:
- the dci
-
setDci
- Parameters:
dci
- the dci to set
-
getDefaultImage
- Returns:
- the defaultImage
-
setDefaultImage
- Parameters:
defaultImage
- the defaultImage to set
-
containRuleList
public boolean containRuleList()Check if this configuration has rule list.- Returns:
- true if this configuration has rule list
-
getCorrectImage
Checks is any rule applicable on last value. All except "like" and "not like" are compared withT.compateTo(T)
. Values for "Like" and "not like" can be provided as regular expressions so they are always compared as a strings and with help ofGlob.matchIgnoreCase(pattern, string)
.- Parameters:
dciValue
- DCI value to check- Returns:
- correct image according to last value
-