public class JCATraversableResolver
extends java.lang.Object
implements javax.validation.TraversableResolver
| Constructor and Description |
|---|
JCATraversableResolver() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCascadable(java.lang.Object traversableObject,
javax.validation.Path.Node traversableProperty,
java.lang.Class<?> rootBeanType,
javax.validation.Path pathToTraversableObject,
java.lang.annotation.ElementType elementType)
Determine if Bean Validation is allowed to cascade validation on the bean
instance returned by the property value marked as
@Valid. |
boolean |
isReachable(java.lang.Object traversableObject,
javax.validation.Path.Node traversableProperty,
java.lang.Class<?> rootBeanType,
javax.validation.Path pathToTraversableObject,
java.lang.annotation.ElementType elementType)
Determine if Bean Validation is allowed to reach the property state
|
public boolean isReachable(java.lang.Object traversableObject,
javax.validation.Path.Node traversableProperty,
java.lang.Class<?> rootBeanType,
javax.validation.Path pathToTraversableObject,
java.lang.annotation.ElementType elementType)
isReachable in interface javax.validation.TraversableResolvertraversableObject - object hosting traversableProperty or null if
validateValue is calledtraversableProperty - the traversable property.rootBeanType - type of the root object passed to the Validator.pathToTraversableObject - path from the root object to traversableObject
(using the path specification defined by Bean Validator).elementType - either FIELD or METHOD.true if Bean Validation is allowed to reach the
property state, false otherwise.public boolean isCascadable(java.lang.Object traversableObject,
javax.validation.Path.Node traversableProperty,
java.lang.Class<?> rootBeanType,
javax.validation.Path pathToTraversableObject,
java.lang.annotation.ElementType elementType)
@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 @ValidisCascadable in interface javax.validation.TraversableResolvertraversableObject - object hosting traversableProperty or null if
validateValue is calledtraversableProperty - the traversable property.rootBeanType - type of the root object passed to the Validator.pathToTraversableObject - path from the root object to traversableObject
(using the path specification defined by Bean Validator).elementType - either FIELD or METHOD.true if Bean Validation is allowed to cascade
validation, false otherwise.Copyright © 2014 IronJacamar (http://www.ironjacamar.org)