javax.validation
Interface TraversableResolver
public interface TraversableResolver
Contract determining if a property can be accessed by the Bean Validation provider
This contract is called for each property either validated or traversed.
A traversable resolver implementation must me thread-safe.
- Author:
- Emmanuel Bernard
Method Summary |
boolean |
isTraversable(java.lang.Object traversableObject,
java.lang.String traversableProperty,
java.lang.Class<?> rootBeanType,
java.lang.String pathToTraversableObject,
java.lang.annotation.ElementType elementType)
Determine if a property can be traversed by Bean Validation. |
isTraversable
boolean isTraversable(java.lang.Object traversableObject,
java.lang.String traversableProperty,
java.lang.Class<?> rootBeanType,
java.lang.String pathToTraversableObject,
java.lang.annotation.ElementType elementType)
- Determine if a property can be traversed by Bean Validation.
- Parameters:
traversableObject
- object hosting traversableProperty
.traversableProperty
- name of the traversable property.rootBeanType
- type of the root object passed to the Validator.pathToTraversableObject
- path from the root object to
the traversableProperty
(using the path specification defined by Bean Validator).elementType
- either FIELD
or METHOD
.
- Returns:
true
if the property is traversable by Bean Validation,
false
otherwise.
Copyright © 2007-2009. All Rights Reserved.