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

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.validation.impl.DefaultScope
All Implemented Interfaces:
Scope

public class DefaultScope
extends java.lang.Object
implements Scope

Default implementation of Scope, which declares the constraint as always applicable.


Constructor Summary
DefaultScope()
           
 
Method Summary
 boolean isApplicable(java.lang.Object pSource, Constraint.Context pContext)
          Returns always true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultScope

public DefaultScope()
Method Detail

isApplicable

public boolean isApplicable(java.lang.Object pSource,
                            Constraint.Context pContext)
                     throws com.softwareag.centrasite.appl.framework.CSAppFrameworkException
Returns always true.

Specified by:
isApplicable in interface Scope
Returns:
True, if the Constraint is applicable, false otherwise. In other words, true, if the Constraint is enabled, or false, if the Constraint is disabled.
Throws:
com.softwareag.centrasite.appl.framework.CSAppFrameworkException