public static class FacesMessage.Severity
extends java.lang.Object
implements java.lang.Comparable
Class used to represent message severity levels in a typesafe enumeration.
Modifier and Type | Field and Description |
---|---|
private static int |
nextOrdinal
Static counter returning the ordinal value to be assigned to the
next instance that is created.
|
private int |
ordinal
The ordinal value assigned to this instance.
|
(package private) java.lang.String |
severityName
The (optional) name for this severity.
|
Modifier | Constructor and Description |
---|---|
private |
Severity(java.lang.String newSeverityName)
Private constructor to disable the creation of new
instances.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object other)
Compare this
FacesMessage.Severity instance to the
specified one. |
int |
getOrdinal()
Return the ordinal value of this
FacesMessage.Severity instance. |
java.lang.String |
toString()
Return a String representation of this
FacesMessage.Severity instance. |
private final int ordinal
The ordinal value assigned to this instance.
java.lang.String severityName
The (optional) name for this severity.
private static int nextOrdinal
Static counter returning the ordinal value to be assigned to the next instance that is created.
private Severity(java.lang.String newSeverityName)
Private constructor to disable the creation of new instances.
public int compareTo(java.lang.Object other)
Compare this FacesMessage.Severity
instance to the
specified one. Returns a negative integer, zero, or a
positive integer if this object is less than, equal to, or
greater than the specified object.
compareTo
in interface java.lang.Comparable
other
- The other object to be compared topublic int getOrdinal()
Return the ordinal value of this FacesMessage.Severity
instance.
public java.lang.String toString()
Return a String representation of this FacesMessage.Severity
instance.
toString
in class java.lang.Object