Package org.netxms.client.maps.configs
Class LinkConfig
- java.lang.Object
-
- org.netxms.client.maps.configs.LinkConfig
-
public class LinkConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intCOLOR_SOURCE_CUSTOM_COLORstatic intCOLOR_SOURCE_DEFAULTstatic intCOLOR_SOURCE_OBJECT_STATUSstatic intCOLOR_SOURCE_UNDEFINED
-
Constructor Summary
Constructors Constructor Description LinkConfig()Default constructorLinkConfig(SingleDciConfig[] dciList, List<Long> objectStatusList, int colorSource, int color, int routing, long[] bendPoints, boolean useActiveThresholds, boolean isLocked)Constructor for creating XML
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LinkConfigcreateFromXml(String xml)Create DCI list object from XML documentStringcreateXml()Create XML from configuration.long[]getBendPoints()intgetColor()intgetColorSource()SingleDciConfig[]getDciList()List<Long>getObjectStatusList()intgetRouting()booleanisLocked()booleanisUseActiveThresholds()voidsetBendPoints(long[] bendPoints)voidsetColor(int color)voidsetColorSource(int colorSource)voidsetDciList(SingleDciConfig[] dciList)voidsetLocked(boolean isLocked)voidsetObjectStatusList(List<Long> objectStatusList)voidsetRouting(int routing)voidsetUseActiveThresholds(boolean useActiveThresholds)StringtoString()
-
-
-
Field Detail
-
COLOR_SOURCE_UNDEFINED
public static final int COLOR_SOURCE_UNDEFINED
- See Also:
- Constant Field Values
-
COLOR_SOURCE_DEFAULT
public static final int COLOR_SOURCE_DEFAULT
- See Also:
- Constant Field Values
-
COLOR_SOURCE_OBJECT_STATUS
public static final int COLOR_SOURCE_OBJECT_STATUS
- See Also:
- Constant Field Values
-
COLOR_SOURCE_CUSTOM_COLOR
public static final int COLOR_SOURCE_CUSTOM_COLOR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LinkConfig
public LinkConfig()
Default constructor
-
LinkConfig
public LinkConfig(SingleDciConfig[] dciList, List<Long> objectStatusList, int colorSource, int color, int routing, long[] bendPoints, boolean useActiveThresholds, boolean isLocked)
Constructor for creating XML- Parameters:
dciList-objectStatusList-colorSource-color-routing-bendPoints-useActiveThresholds-isLocked-
-
-
Method Detail
-
createFromXml
public static LinkConfig 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
-
setObjectStatusList
public void setObjectStatusList(List<Long> objectStatusList)
- Parameters:
objectStatusList- the objectStatusList to set
-
getDciList
public SingleDciConfig[] getDciList()
- Returns:
- the dciList
-
setDciList
public void setDciList(SingleDciConfig[] dciList)
- Parameters:
dciList- the dciList to set
-
getColor
public int getColor()
- Returns:
- the color
-
setColor
public void setColor(int color)
- Parameters:
color- the color to set
-
getRouting
public int getRouting()
- Returns:
- the routing
-
setRouting
public void setRouting(int routing)
- Parameters:
routing- the routing to set
-
getBendPoints
public long[] getBendPoints()
- Returns:
- the bendPoints
-
setBendPoints
public void setBendPoints(long[] bendPoints)
- Parameters:
bendPoints- the bendPoints to set
-
setUseActiveThresholds
public void setUseActiveThresholds(boolean useActiveThresholds)
- Parameters:
useActiveThresholds- set use active thresholds
-
isUseActiveThresholds
public boolean isUseActiveThresholds()
- Returns:
- are active thresholds used
-
isLocked
public boolean isLocked()
-
setLocked
public void setLocked(boolean isLocked)
- Parameters:
isLocked- set link locked or unlocked
-
getColorSource
public int getColorSource()
- Returns:
- the colorSource
-
setColorSource
public void setColorSource(int colorSource)
- Parameters:
colorSource- the colorSource to set
-
-