net.sf.oval.constraint.exclusion
Class NullableExclusion

java.lang.Object
  extended by net.sf.oval.AbstractCheckExclusion
      extended by net.sf.oval.configuration.annotation.AbstractAnnotationCheckExclusion<Nullable>
          extended by net.sf.oval.constraint.exclusion.NullableExclusion
All Implemented Interfaces:
Serializable, CheckExclusion, AnnotationCheckExclusion<Nullable>

public class NullableExclusion
extends AbstractAnnotationCheckExclusion<Nullable>

Author:
Sebastian Thomschke
See Also:
Serialized Form

Constructor Summary
NullableExclusion()
           
 
Method Summary
 boolean isCheckExcluded(Check check, Object validatedObject, Object valueToValidate, OValContext context, Validator validator)
          This method implements the validation logic
 
Methods inherited from class net.sf.oval.configuration.annotation.AbstractAnnotationCheckExclusion
configure
 
Methods inherited from class net.sf.oval.AbstractCheckExclusion
getMessageVariables, getProfiles, getWhen, isActive, setProfiles, 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.CheckExclusion
getProfiles, getWhen, isActive, setProfiles, setWhen
 

Constructor Detail

NullableExclusion

public NullableExclusion()
Method Detail

isCheckExcluded

public boolean isCheckExcluded(Check check,
                               Object validatedObject,
                               Object valueToValidate,
                               OValContext context,
                               Validator validator)
                        throws OValException
This method implements the validation logic

Parameters:
check - a check that OVal is about to validate
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:
OValException


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