com.softwareag.centrasite.appl.framework.validation.impl
Class AlwaysFailingCondition

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.validation.impl.AbstractCondition
      extended by com.softwareag.centrasite.appl.framework.validation.impl.AlwaysFailingCondition
All Implemented Interfaces:
Condition

public class AlwaysFailingCondition
extends AbstractCondition

A default condition, which is always failing.


Constructor Summary
AlwaysFailingCondition(ErrorCode pErrorCode)
          Creates a new instance with the given error code.
 
Method Summary
 void check(java.lang.Object pSource, Constraint.Context pContext, Constraint.Listener pListener)
          Called to decide on the conditions state.
 
Methods inherited from class com.softwareag.centrasite.appl.framework.validation.impl.AbstractCondition
error, error, getErrorCode, getName, getValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlwaysFailingCondition

public AlwaysFailingCondition(ErrorCode pErrorCode)
Creates a new instance with the given error code.

Method Detail

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