|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Severity>
org.openstreetmap.josm.data.validation.Severity
public enum Severity
The error severity
Enum Constant Summary | |
---|---|
ERROR
Error messages |
|
OTHER
Other messages |
|
WARNING
Warning messages |
Field Summary | |
---|---|
private java.awt.Color |
color
Associated color |
private java.lang.String |
icon
Associated icon |
private java.lang.String |
message
Description of the severity code |
Method Summary | |
---|---|
java.awt.Color |
getColor()
Gets the associated color |
static void |
getColors()
|
java.lang.String |
getIcon()
Gets the associated icon |
java.lang.String |
toString()
|
static Severity |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Severity[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Severity ERROR
public static final Severity WARNING
public static final Severity OTHER
Field Detail |
---|
private final java.lang.String message
private final java.lang.String icon
private final java.awt.Color color
Method Detail |
---|
public static Severity[] values()
for (Severity c : Severity.values()) System.out.println(c);
public static Severity valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic static void getColors()
public java.lang.String toString()
toString
in class java.lang.Enum<Severity>
public java.lang.String getIcon()
public java.awt.Color getColor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |