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 java.lang.Object implements Status
-
-
Constructor Summary
Constructors Constructor Description GraphMLStatus(OnmsSeverity severity)
GraphMLStatus(OnmsSeverity severity, java.util.Map<java.lang.String,java.lang.String> styleProperties)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.util.Map<java.lang.String,java.lang.String>
checkStylePropertyNames(java.util.Map<java.lang.String,java.lang.String> styleProperties)
java.lang.String
computeStatus()
protected abstract java.util.Set<java.lang.String>
getAllowedStyleProperties()
OnmsSeverity
getSeverity()
java.util.Map<java.lang.String,java.lang.String>
getStatusProperties()
java.util.Map<java.lang.String,java.lang.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 java.util.Map<java.lang.String,java.lang.String>
mergeStyleProperties(GraphMLStatus s1, GraphMLStatus s2)
GraphMLStatus
severity(OnmsSeverity severity)
GraphMLStatus
style(java.lang.String key, java.lang.String value)
GraphMLStatus
style(java.util.Map<java.lang.String,java.lang.String> style)
-
-
-
Constructor Detail
-
GraphMLStatus
public GraphMLStatus(OnmsSeverity severity, java.util.Map<java.lang.String,java.lang.String> styleProperties)
-
GraphMLStatus
public GraphMLStatus(OnmsSeverity severity)
-
-
Method Detail
-
getAllowedStyleProperties
protected abstract java.util.Set<java.lang.String> getAllowedStyleProperties()
-
getSeverity
public final OnmsSeverity getSeverity()
-
computeStatus
public final java.lang.String computeStatus()
- Specified by:
computeStatus
in interfaceStatus
-
getStatusProperties
public java.util.Map<java.lang.String,java.lang.String> getStatusProperties()
- Specified by:
getStatusProperties
in interfaceStatus
-
getStyleProperties
public final java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,java.lang.String> style)
-
style
public final GraphMLStatus style(java.lang.String key, java.lang.String value)
-
checkStylePropertyNames
protected final java.util.Map<java.lang.String,java.lang.String> checkStylePropertyNames(java.util.Map<java.lang.String,java.lang.String> styleProperties)
-
mergeSeverity
protected static OnmsSeverity mergeSeverity(GraphMLStatus s1, GraphMLStatus s2)
-
mergeStyleProperties
protected static java.util.Map<java.lang.String,java.lang.String> mergeStyleProperties(GraphMLStatus s1, GraphMLStatus s2)
-
-