Class SimpleTraversableResolver

  • All Implemented Interfaces:
    jakarta.validation.TraversableResolver, CachingRelevant

    public class SimpleTraversableResolver
    extends Object
    implements jakarta.validation.TraversableResolver, CachingRelevant
    Description: traversable resolver that does always resolve.
    • Constructor Detail

      • SimpleTraversableResolver

        public SimpleTraversableResolver()
    • Method Detail

      • isReachable

        public boolean isReachable​(Object traversableObject,
                                   jakarta.validation.Path.Node traversableProperty,
                                   Class<?> rootBeanType,
                                   jakarta.validation.Path pathToTraversableObject,
                                   ElementType elementType)
        Specified by:
        isReachable in interface jakarta.validation.TraversableResolver
        Returns:
        true
      • isCascadable

        public boolean isCascadable​(Object traversableObject,
                                    jakarta.validation.Path.Node traversableProperty,
                                    Class<?> rootBeanType,
                                    jakarta.validation.Path pathToTraversableObject,
                                    ElementType elementType)
        Specified by:
        isCascadable in interface jakarta.validation.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