org.opennms.web.map.config
Class Severity

java.lang.Object
  extended by org.opennms.web.map.config.Severity
All Implemented Interfaces:
Comparable

public class Severity
extends Object
implements 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, String label, String color)
           
 
Method Summary
 int compareTo(Object otherSev)
          Compares the Severity to another in input by ids.
 String getColor()
           
 int getId()
           
 String getLabel()
           
 boolean isFlash()
           
 void setColor(String color)
           
 void setFlash(boolean flash)
           
 void setId(int id)
           
 void setLabel(String label)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Severity

public Severity(int id,
                String label,
                String color)
Parameters:
id -
label -
color -
Method Detail

compareTo

public int compareTo(Object otherSev)
Compares the Severity to another in input by ids.

Specified by:
compareTo in interface Comparable

getColor

public String getColor()

setColor

public void setColor(String color)

getId

public int getId()

setId

public void setId(int id)

getLabel

public String getLabel()

setLabel

public void setLabel(String label)

isFlash

public boolean isFlash()

setFlash

public void setFlash(boolean flash)


Copyright © 2009. All Rights Reserved.