net.sf.oval.constraint
Class ConstraintsCheck

java.lang.Object
  extended by net.sf.oval.AbstractCheck
      extended by net.sf.oval.configuration.annotation.AbstractAnnotationCheck<Annotation>
          extended by net.sf.oval.constraint.ConstraintsCheck
All Implemented Interfaces:
Serializable, Check, AnnotationCheck<Annotation>

public class ConstraintsCheck
extends AbstractAnnotationCheck<Annotation>

Internal check holding multiple check instances of the same type, e.g. used for @Assert.List(...)

Author:
Sebastian Thomschke
See Also:
Serialized Form

Field Summary
 List<Check> checks
           
 
Constructor Summary
ConstraintsCheck()
           
 
Method Summary
protected  ConstraintTarget[] getAppliesToDefault()
           
 boolean isSatisfied(Object validatedObject, Object valueToValidate, OValContext context, Validator validator)
          This method is not used.
 
Methods inherited from class net.sf.oval.configuration.annotation.AbstractAnnotationCheck
configure
 
Methods inherited from class net.sf.oval.AbstractCheck
createMessageVariables, getAppliesTo, getContext, getErrorCode, getMessage, getMessageVariables, getProfiles, getSeverity, getTarget, getWhen, isActive, requireMessageVariablesRecreation, setAppliesTo, setContext, setErrorCode, setMessage, setProfiles, setSeverity, setTarget, setWhen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.oval.Check
getAppliesTo, getContext, getErrorCode, getMessage, getMessageVariables, getProfiles, getSeverity, getTarget, getWhen, isActive, setAppliesTo, setContext, setErrorCode, setMessage, setProfiles, setSeverity, setTarget, setWhen
 

Field Detail

checks

public List<Check> checks
Constructor Detail

ConstraintsCheck

public ConstraintsCheck()
Method Detail

getAppliesToDefault

protected ConstraintTarget[] getAppliesToDefault()
Overrides:
getAppliesToDefault in class AbstractCheck
Returns:
the default behavior when the constraint is validated for a array/map/collection reference.

isSatisfied

public boolean isSatisfied(Object validatedObject,
                           Object valueToValidate,
                           OValContext context,
                           Validator validator)
                    throws UnsupportedOperationException
This method is not used.
The validation of this special constraint is directly performed by the Validator class

Parameters:
validatedObject - the object/bean to validate the value against, for static fields or methods this is the class
valueToValidate - the value to validate, may be null when validating pre conditions for static methods
context - the validation context (e.g. a field, a constructor parameter or a method parameter)
validator - the calling validator
Returns:
true if the value satisfies the checked constraint
Throws:
UnsupportedOperationException - always thrown if this method is invoked


Copyright © 2005–2015 The OVal Development Team. All rights reserved.