com.softwareag.centrasite.appl.framework.validation
Interface Scope

All Known Subinterfaces:
Constraint, ReadOnlyConstraint, ValidationConstraint
All Known Implementing Classes:
AbstractConstraint, DefaultReadOnlyConstraint, DefaultScope, DefaultValidationConstraint

public interface Scope

The Scope is used to enable or disable constraints. Scopes are typically attached to lifecycle phases. For example, a scope may be used to mark an object as writable in its development stage and read-only in production.


Method Summary
 boolean isApplicable(java.lang.Object pSource, Constraint.Context pContext)
          Returns, whether a Constraint is applicable.
 

Method Detail

isApplicable

boolean isApplicable(java.lang.Object pSource,
                     Constraint.Context pContext)
                     throws com.softwareag.centrasite.appl.framework.CSAppFrameworkException
Returns, whether a Constraint is applicable.

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