Class GraphMLStatus
- java.lang.Object
-
- org.opennms.features.topology.plugins.topo.graphml.status.GraphMLStatus
-
- All Implemented Interfaces:
Status
- Direct Known Subclasses:
GraphMLEdgeStatus
,GraphMLVertexStatus
public abstract class GraphMLStatus extends Object implements Status
-
-
Constructor Summary
Constructors Constructor Description GraphMLStatus(OnmsSeverity severity)
GraphMLStatus(OnmsSeverity severity, Map<String,String> styleProperties)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Map<String,String>
checkStylePropertyNames(Map<String,String> styleProperties)
String
computeStatus()
protected abstract Set<String>
getAllowedStyleProperties()
OnmsSeverity
getSeverity()
Map<String,String>
getStatusProperties()
Map<String,String>
getStyleProperties()
Defines a CSS-Property to Value mapping, where the key defines the CSS-Property and the value the according value.protected static OnmsSeverity
mergeSeverity(GraphMLStatus s1, GraphMLStatus s2)
protected static Map<String,String>
mergeStyleProperties(GraphMLStatus s1, GraphMLStatus s2)
GraphMLStatus
severity(OnmsSeverity severity)
GraphMLStatus
style(String key, String value)
GraphMLStatus
style(Map<String,String> style)
-
-
-
Constructor Detail
-
GraphMLStatus
public GraphMLStatus(OnmsSeverity severity, Map<String,String> styleProperties)
-
GraphMLStatus
public GraphMLStatus(OnmsSeverity severity)
-
-
Method Detail
-
getSeverity
public final OnmsSeverity getSeverity()
-
computeStatus
public final String computeStatus()
- Specified by:
computeStatus
in interfaceStatus
-
getStatusProperties
public Map<String,String> getStatusProperties()
- Specified by:
getStatusProperties
in interfaceStatus
-
getStyleProperties
public final Map<String,String> getStyleProperties()
Description copied from interface:Status
Defines a CSS-Property to Value mapping, where the key defines the CSS-Property and the value the according value. Each entry is applied to the GWTEdge style attribute. If no style should be applied in addition, return an empty map.- Specified by:
getStyleProperties
in interfaceStatus
- Returns:
- CSS-Property to Value-Mapping for each GWTEdge. Must NOT be null
-
severity
public final GraphMLStatus severity(OnmsSeverity severity)
-
style
public final GraphMLStatus style(Map<String,String> style)
-
style
public final GraphMLStatus style(String key, String value)
-
checkStylePropertyNames
protected final Map<String,String> checkStylePropertyNames(Map<String,String> styleProperties)
-
mergeSeverity
protected static OnmsSeverity mergeSeverity(GraphMLStatus s1, GraphMLStatus s2)
-
mergeStyleProperties
protected static Map<String,String> mergeStyleProperties(GraphMLStatus s1, GraphMLStatus s2)
-
-