Package jakarta.faces.application
Class FacesMessage.Severity
- java.lang.Object
-
- jakarta.faces.application.FacesMessage.Severity
-
- All Implemented Interfaces:
Comparable
- Enclosing class:
- FacesMessage
public static class FacesMessage.Severity extends Object implements Comparable
Class used to represent message severity levels in a typesafe enumeration.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Object other)
Compare thisFacesMessage.Severity
instance to the specified one.int
getOrdinal()
Return the ordinal value of thisFacesMessage.Severity
instance.String
toString()
Return a String representation of thisFacesMessage.Severity
instance.
-
-
-
Method Detail
-
compareTo
public int compareTo(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.- Specified by:
compareTo
in interfaceComparable
- Parameters:
other
- The other object to be compared to
-
getOrdinal
public int getOrdinal()
Return the ordinal value of this
FacesMessage.Severity
instance.- Returns:
- the ordinal.
-
toString
public String toString()
Return a String representation of this
FacesMessage.Severity
instance.
-
-