Enum ScheduleExpressionType
- java.lang.Object
-
- java.lang.Enum<ScheduleExpressionType>
-
- org.jboss.as.ejb3.timerservice.schedule.value.ScheduleExpressionType
-
- All Implemented Interfaces:
Serializable,Comparable<ScheduleExpressionType>
public enum ScheduleExpressionType extends Enum<ScheduleExpressionType>
Represents the type of expression used in the values of aScheduleExpression- Version:
- $Revision: $
- Author:
- Jaikiran Pai
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INCREMENTRepresents a value represented as an increment.LISTRepresents a value represented as a list.RANGERepresents a value represented as a range.SINGLE_VALUERepresents a single value type.WILDCARDRepresents a wildcard "*" value.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ScheduleExpressionTypegetType(String value)static ScheduleExpressionTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ScheduleExpressionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SINGLE_VALUE
public static final ScheduleExpressionType SINGLE_VALUE
Represents a single value type.For example:
- second = "10"
- month = "Jun"
-
WILDCARD
public static final ScheduleExpressionType WILDCARD
Represents a wildcard "*" value.For example:
- second = "*"
-
LIST
public static final ScheduleExpressionType LIST
Represents a value represented as a list.For example:
- second = "1, 10"
- dayOfMonth = "Sun, Fri, Mon"
-
RANGE
public static final ScheduleExpressionType RANGE
Represents a value represented as a range.For example:
- minute = "0-15"
- year = "2009-2012
-
INCREMENT
public static final ScheduleExpressionType INCREMENT
Represents a value represented as an increment.For example:
- hour = "* / 3"
- minute = "20 / 10
-
-
Method Detail
-
values
public static ScheduleExpressionType[] 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 (ScheduleExpressionType c : ScheduleExpressionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ScheduleExpressionType valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getType
public static ScheduleExpressionType getType(String value)
-
-