public abstract class GraphMLStatus extends Object implements Status
Constructor and Description |
---|
GraphMLStatus(OnmsSeverity severity) |
GraphMLStatus(OnmsSeverity severity,
Map<String,String> styleProperties) |
Modifier and Type | Method and 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(Map<String,String> style) |
GraphMLStatus |
style(String key,
String value) |
public GraphMLStatus(OnmsSeverity severity, Map<String,String> styleProperties)
public GraphMLStatus(OnmsSeverity severity)
public final OnmsSeverity getSeverity()
public final String computeStatus()
computeStatus
in interface Status
public Map<String,String> getStatusProperties()
getStatusProperties
in interface Status
public final Map<String,String> getStyleProperties()
Status
getStyleProperties
in interface Status
public final GraphMLStatus severity(OnmsSeverity severity)
public final GraphMLStatus style(Map<String,String> style)
public final GraphMLStatus style(String key, String value)
protected final Map<String,String> checkStylePropertyNames(Map<String,String> styleProperties)
protected static OnmsSeverity mergeSeverity(GraphMLStatus s1, GraphMLStatus s2)
protected static Map<String,String> mergeStyleProperties(GraphMLStatus s1, GraphMLStatus s2)
Copyright © 2020. All rights reserved.