public static final class AnnotationType.Severity extends Object implements Comparable
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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) |
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
public int compareTo(Object o)
compareTo
in interface Comparable
public String toString()
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 statusIllegalArgumentException
- if one of the provided statuses is something
else then STATUS_ERROR
,
STATUS_WARNING
and
STATUS_OK
public static Color getDefaultColor(AnnotationType.Severity s)
Color
for a given Status
.s
- Status
for which default color should be foundColor
for a given Status
public static AnnotationType.Severity valueOf(String severity)
public String getName()
Built on October 25 2023. | Copyright © 2017-2023 Apache Software Foundation. All Rights Reserved.