org.apache.bval.jsr303.resolver
Class SimpleTraversableResolver

java.lang.Object
  extended by org.apache.bval.jsr303.resolver.SimpleTraversableResolver
All Implemented Interfaces:
TraversableResolver, CachingRelevant

public class SimpleTraversableResolver
extends Object
implements TraversableResolver, CachingRelevant

Description: traversable resolver that does always resolve.


Constructor Summary
SimpleTraversableResolver()
           
 
Method Summary
 boolean isCascadable(Object traversableObject, Path.Node traversableProperty, Class<?> rootBeanType, Path pathToTraversableObject, ElementType elementType)
          
 boolean isReachable(Object traversableObject, Path.Node traversableProperty, Class<?> rootBeanType, Path pathToTraversableObject, ElementType elementType)
          
 boolean needsCaching()
          Learn whether the results of the TraversableResolver should be cached.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTraversableResolver

public SimpleTraversableResolver()
Method Detail

isReachable

public boolean isReachable(Object traversableObject,
                           Path.Node traversableProperty,
                           Class<?> rootBeanType,
                           Path pathToTraversableObject,
                           ElementType elementType)

Specified by:
isReachable in interface TraversableResolver
Returns:
true

isCascadable

public boolean isCascadable(Object traversableObject,
                            Path.Node traversableProperty,
                            Class<?> rootBeanType,
                            Path pathToTraversableObject,
                            ElementType elementType)

Specified by:
isCascadable in interface TraversableResolver
Returns:
true

needsCaching

public boolean needsCaching()
Learn whether the results of the TraversableResolver should be cached.

Specified by:
needsCaching in interface CachingRelevant
Returns:
false


Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.