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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JCATraversableResolver

      public JCATraversableResolver()
  • Method Details

    • 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:
      isReachable in interface javax.validation.TraversableResolver
      Parameters:
      traversableObject - object hosting traversableProperty or null if validateValue is called
      traversableProperty - 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.
      Returns:
      true if Bean Validation is allowed to reach the property state, false otherwise.
    • 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:
      isCascadable in interface javax.validation.TraversableResolver
      Parameters:
      traversableObject - object hosting traversableProperty or null if validateValue is called
      traversableProperty - 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.
      Returns:
      true if Bean Validation is allowed to cascade validation, false otherwise.