Class IntegerBasedExpression

java.lang.Object
org.jboss.as.ejb3.timerservice.schedule.attribute.IntegerBasedExpression
Direct Known Subclasses:
DayOfMonth, DayOfWeek, Hour, Minute, Month, Second, Year

public abstract class IntegerBasedExpression extends Object
Represents a Integer type value in a ScheduleExpression.

Examples for IntegerBasedExpression are the value of seconds, years, months etc... which allow Integer.

Version:
$Revision: $
Author:
Jaikiran Pai
  • Field Details

  • Constructor Details

    • IntegerBasedExpression

      public IntegerBasedExpression(String value)
  • Method Details

    • getMaxValue

      protected abstract Integer getMaxValue()
    • getMinValue

      protected abstract Integer getMinValue()
    • accepts

      protected abstract boolean accepts(ScheduleExpressionType scheduleExprType)
    • processListValue

      protected void processListValue(ListValue list)
    • processListItem

      protected void processListItem(String listItem)
    • processRangeValue

      protected void processRangeValue(RangeValue range)
    • processIncrement

      protected void processIncrement(IncrementValue incr)
    • processSingleValue

      protected void processSingleValue(SingleValue singleValue)
    • parseInt

      protected Integer parseInt(String alias)
    • assertValid

      protected void assertValid(Integer value) throws IllegalArgumentException
      Throws:
      IllegalArgumentException
    • isRelativeValue

      public abstract boolean isRelativeValue(String value)
      Checks if relative value is supported.
      Parameters:
      value - non-null value
      Returns:
      true if relative value is supported
    • getType

      public ScheduleExpressionType getType()