Package com.jalios.jcms.alert
Enum AlertQueryBuilder.ReadMode
- java.lang.Object
-
- java.lang.Enum<AlertQueryBuilder.ReadMode>
-
- com.jalios.jcms.alert.AlertQueryBuilder.ReadMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AlertQueryBuilder.ReadMode>
- Enclosing class:
- AlertQueryBuilder
public static enum AlertQueryBuilder.ReadMode extends java.lang.Enum<AlertQueryBuilder.ReadMode>
ReadMode represents the state of alert (Read, unread, read & unread)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equalsIgnoreCase(java.lang.String value)
static AlertQueryBuilder.ReadMode
getFromKey(java.lang.String str)
java.lang.String
getLabel(java.lang.String userLang)
java.lang.String
getValue()
java.lang.String
toString()
static AlertQueryBuilder.ReadMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AlertQueryBuilder.ReadMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
READ
public static final AlertQueryBuilder.ReadMode READ
Read alerts
-
NOT_READ
public static final AlertQueryBuilder.ReadMode NOT_READ
Unread alerts
-
ALL
public static final AlertQueryBuilder.ReadMode ALL
Read and unread alerts
-
-
Method Detail
-
values
public static AlertQueryBuilder.ReadMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AlertQueryBuilder.ReadMode c : AlertQueryBuilder.ReadMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AlertQueryBuilder.ReadMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getValue
public java.lang.String getValue()
-
equalsIgnoreCase
public boolean equalsIgnoreCase(java.lang.String value)
-
getLabel
public java.lang.String getLabel(java.lang.String userLang)
-
getFromKey
public static AlertQueryBuilder.ReadMode getFromKey(java.lang.String str)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<AlertQueryBuilder.ReadMode>
-
-