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 a ScheduleExpression
Version:
$Revision: $
Author:
Jaikiran Pai
  • Enum Constant Details

    • 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 Details

    • values

      public static ScheduleExpressionType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      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 name
      NullPointerException - if the argument is null
    • getType

      public static ScheduleExpressionType getType(String value)