com.softwareag.centrasite.appl.framework.validation.impl
Class MaxLengthCondition
java.lang.Object
com.softwareag.centrasite.appl.framework.validation.impl.AbstractCondition
com.softwareag.centrasite.appl.framework.validation.impl.MaxLengthCondition
- All Implemented Interfaces:
- Condition
public class MaxLengthCondition
- extends AbstractCondition
This condition checks, whether the property values length is
lower than, or equal to, the given maximum length.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MaxLengthCondition
public MaxLengthCondition(ErrorCode pCode,
int pMaxLen)
- Creates a new instance.
- Parameters:
pCode
- The error code to throw, if the condition is violated.pMaxLen
- The property values maximum length.
check
public void check(java.lang.Object pSource,
Constraint.Context pCtx,
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