|
org.netbeans.modules.editor.lib/1 1.44.0 9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.editor.AnnotationType.Severity
public static final class AnnotationType.Severity
| Field Summary | |
|---|---|
static AnnotationType.Severity |
STATUS_ERROR
Status error. |
static AnnotationType.Severity |
STATUS_NONE
Status OK. |
static AnnotationType.Severity |
STATUS_OK
Status OK. |
static AnnotationType.Severity |
STATUS_WARNING
Status warning. |
| Method Summary | |
|---|---|
int |
compareTo(Object o)
|
boolean |
equals(Object o)
|
static AnnotationType.Severity |
getCompoundStatus(AnnotationType.Severity first,
AnnotationType.Severity second)
Return the more important status out of the two given statuses. |
static Color |
getDefaultColor(AnnotationType.Severity s)
Returns default Color for a given Status. |
String |
getName()
|
int |
hashCode()
|
String |
toString()
Returns a String representation of the Status. |
static AnnotationType.Severity |
valueOf(String severity)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final AnnotationType.Severity STATUS_NONE
public static final AnnotationType.Severity STATUS_OK
public static final AnnotationType.Severity STATUS_WARNING
public static final AnnotationType.Severity STATUS_ERROR
| Method Detail |
|---|
public int compareTo(Object o)
compareTo in interface Comparablepublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
String representation of the Status.
The format of the String is not specified.
This method should only be used for debugging purposes.
toString in class ObjectString representation of this object
public static AnnotationType.Severity getCompoundStatus(AnnotationType.Severity first,
AnnotationType.Severity second)
throws IllegalArgumentException
STATUS_ERROR>STATUS_WARNING>STATUS_OK.
first - one provided statussecond - another provided status
IllegalArgumentException - if one of the provided statuses is something
else then STATUS_ERROR,
STATUS_WARNING and
STATUS_OKpublic static Color getDefaultColor(AnnotationType.Severity s)
Color for a given Status.
s - Status for which default color should be found
Color for a given Statuspublic static AnnotationType.Severity valueOf(String severity)
public String getName()
|
org.netbeans.modules.editor.lib/1 1.44.0 9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||