com.softwareag.centrasite.appl.framework.validation.impl
Class IntegerConditionFactory.RangeCondition
java.lang.Object
com.softwareag.centrasite.appl.framework.validation.impl.AbstractCondition
com.softwareag.centrasite.appl.framework.validation.impl.IntegerConditionFactory.RangeCondition
- All Implemented Interfaces:
- Condition
- Enclosing class:
- IntegerConditionFactory
public static class IntegerConditionFactory.RangeCondition
- extends AbstractCondition
This condition checks, whether the property value is within a given
range.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntegerConditionFactory.RangeCondition
public IntegerConditionFactory.RangeCondition(ErrorCode pErrorCode,
int pLowerLimit,
int pUpperLimit)
- Creates a new instance.
- Parameters:
pErrorCode
- The error code to throw, if the constraint is
violated.pLowerLimit
- The ranges lower limit; the constraint is violated,
if the properties numeric value is below.pUpperLimit
- The ranges upper limit; the constraint is violated,
if the properties numeric value is above.
check
public void check(java.lang.Object pSource,
Constraint.Context pContext,
Constraint.Listener pListener)
throws com.softwareag.centrasite.appl.framework.CSAppFrameworkException
- Description copied from interface:
Condition
- Called to decide on the conditions state. The
Condition
must invoke the Constraint.Listener
, if it thinks that
the constraint is violated.
- Throws:
com.softwareag.centrasite.appl.framework.CSAppFrameworkException