com.softwareag.centrasite.appl.framework.validation.impl
Class RelationDateCondition
java.lang.Object
com.softwareag.centrasite.appl.framework.validation.impl.AbstractCondition
com.softwareag.centrasite.appl.framework.validation.impl.RelationDateCondition
- All Implemented Interfaces:
- Condition
public class RelationDateCondition
- extends AbstractCondition
This condition checks, whether a date is in the future, or in the past.
Constructor Summary |
RelationDateCondition(ErrorCode pCode,
java.util.TimeZone pTz,
com.softwareag.centrasite.appl.framework.validation.impl.RelationDateCondition.RelationType pType)
Creates a new instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RelationDateCondition
public RelationDateCondition(ErrorCode pCode,
java.util.TimeZone pTz,
com.softwareag.centrasite.appl.framework.validation.impl.RelationDateCondition.RelationType pType)
- Creates a new instance.
- Parameters:
pCode
- The error code to throw, if the condition is violated.pTz
- The TimeZone
to use when calculating the current
date.
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