net.sf.oval.constraint.exclusion
Class NullableExclusion
java.lang.Object
net.sf.oval.AbstractCheckExclusion
net.sf.oval.configuration.annotation.AbstractAnnotationCheckExclusion<Nullable>
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullableExclusion
public NullableExclusion()
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 validatevalidatedObject
- the object/bean to validate the value against, for static fields or methods this is
the classvalueToValidate
- the value to validate, may be null when validating pre conditions for static methodscontext
- 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-2013 The OVal Development Team. All Rights Reserved.