Package org.jboss.jca.deployers.common
Class JCATraversableResolver
- java.lang.Object
-
- org.jboss.jca.deployers.common.JCATraversableResolver
-
- All Implemented Interfaces:
javax.validation.TraversableResolver
public class JCATraversableResolver extends Object implements javax.validation.TraversableResolver
JCATraversableResolver- Version:
- $Revision: $
- Author:
- Jeff Zhang
-
-
Constructor Summary
Constructors Constructor Description JCATraversableResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisCascadable(Object traversableObject, javax.validation.Path.Node traversableProperty, Class<?> rootBeanType, javax.validation.Path pathToTraversableObject, ElementType elementType)Determine if Bean Validation is allowed to cascade validation on the bean instance returned by the property value marked as@Valid.booleanisReachable(Object traversableObject, javax.validation.Path.Node traversableProperty, Class<?> rootBeanType, javax.validation.Path pathToTraversableObject, ElementType elementType)Determine if Bean Validation is allowed to reach the property state
-
-
-
Method Detail
-
isReachable
public boolean isReachable(Object traversableObject, javax.validation.Path.Node traversableProperty, Class<?> rootBeanType, javax.validation.Path pathToTraversableObject, ElementType elementType)
Determine if Bean Validation is allowed to reach the property state- Specified by:
isReachablein interfacejavax.validation.TraversableResolver- Parameters:
traversableObject- object hostingtraversablePropertyor null if validateValue is calledtraversableProperty- the traversable property.rootBeanType- type of the root object passed to the Validator.pathToTraversableObject- path from the root object totraversableObject(using the path specification defined by Bean Validator).elementType- eitherFIELDorMETHOD.- Returns:
trueif Bean Validation is allowed to reach the property state,falseotherwise.
-
isCascadable
public boolean isCascadable(Object traversableObject, javax.validation.Path.Node traversableProperty, Class<?> rootBeanType, javax.validation.Path pathToTraversableObject, ElementType elementType)
Determine if Bean Validation is allowed to cascade validation on the bean instance returned by the property value marked as@Valid. Note that this method is called only if isReachable returns true for the same set of arguments and if the property is marked as@Valid- Specified by:
isCascadablein interfacejavax.validation.TraversableResolver- Parameters:
traversableObject- object hostingtraversablePropertyor null if validateValue is calledtraversableProperty- the traversable property.rootBeanType- type of the root object passed to the Validator.pathToTraversableObject- path from the root object totraversableObject(using the path specification defined by Bean Validator).elementType- eitherFIELDorMETHOD.- Returns:
trueif Bean Validation is allowed to cascade validation,falseotherwise.
-
-