org.opennms.web.map.config
Class Severity
java.lang.Object
org.opennms.web.map.config.Severity
- All Implemented Interfaces:
- java.lang.Comparable
public class Severity
- extends java.lang.Object
- implements java.lang.Comparable
- Author:
- mmigliore
TODO To change the template for this generated type comment go to
Window - Preferences - Java - Code Style - Code Templates
|
Constructor Summary |
Severity(int id,
java.lang.String label,
java.lang.String color)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Severity
public Severity(int id,
java.lang.String label,
java.lang.String color)
- Parameters:
id - label - color -
compareTo
public int compareTo(java.lang.Object otherSev)
- Compares the Severity to another in input by ids.
- Specified by:
compareTo in interface java.lang.Comparable
getColor
public java.lang.String getColor()
setColor
public void setColor(java.lang.String color)
getId
public int getId()
setId
public void setId(int id)
getLabel
public java.lang.String getLabel()
setLabel
public void setLabel(java.lang.String label)
isFlash
public boolean isFlash()
setFlash
public void setFlash(boolean flash)
Copyright © 2007. All Rights Reserved.