Class IntegerBasedExpression
- java.lang.Object
-
- org.jboss.as.ejb3.timerservice.schedule.attribute.IntegerBasedExpression
-
public abstract class IntegerBasedExpression extends Object
Represents aIntegertype value in aScheduleExpression.Examples for
IntegerBasedExpressionare the value of seconds, years, months etc... which allowInteger.- Version:
- $Revision: $
- Author:
- Jaikiran Pai
-
-
Field Summary
Fields Modifier and Type Field Description protected SortedSet<Integer>absoluteValuesprotected StringorigValueprotected Set<ScheduleValue>relativeValuesprotected ScheduleExpressionTypescheduleExpressionType
-
Constructor Summary
Constructors Constructor Description IntegerBasedExpression(String value)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract booleanaccepts(ScheduleExpressionType scheduleExprType)protected voidassertValid(Integer value)protected abstract IntegergetMaxValue()protected abstract IntegergetMinValue()ScheduleExpressionTypegetType()abstract booleanisRelativeValue(String value)Checks if relative value is supported.protected IntegerparseInt(String alias)protected voidprocessIncrement(IncrementValue incr)protected voidprocessListItem(String listItem)protected voidprocessListValue(ListValue list)protected voidprocessRangeValue(RangeValue range)protected voidprocessSingleValue(SingleValue singleValue)
-
-
-
Field Detail
-
relativeValues
protected final Set<ScheduleValue> relativeValues
-
scheduleExpressionType
protected final ScheduleExpressionType scheduleExpressionType
-
origValue
protected final String origValue
-
-
Constructor Detail
-
IntegerBasedExpression
public IntegerBasedExpression(String value)
-
-
Method Detail
-
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)
-
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()
-
-