Class NodeImpl

    • Field Detail

      • NODE_COMPARATOR

        public static final Comparator<jakarta.validation.Path.Node> NODE_COMPARATOR
        Comparator for any path Path.Node. For iterable nodes with no, or null, key and index values the left operand is always treated as less than the right.
    • Constructor Detail

      • NodeImpl

        NodeImpl​(jakarta.validation.Path.Node node)
        Create a new NodeImpl instance.
        Parameters:
        node -
      • NodeImpl

        NodeImpl​(jakarta.validation.Path.Node node,
                 Class<T> nodeType,
                 Consumer<T> handler)
    • Method Detail

      • appendNode

        public static StringBuilder appendNode​(jakarta.validation.Path.Node node,
                                               StringBuilder to)
        Append a Node to the specified StringBuilder.
        Parameters:
        node -
        to -
        Returns:
        to
      • atIndex

        public static NodeImpl atIndex​(Integer index)
        Get a NodeImpl indexed from the preceding node (or root).
        Parameters:
        index -
        Returns:
        NodeImpl
      • atKey

        public static NodeImpl atKey​(Object key)
        Get a NodeImpl keyed from the preceding node (or root).
        Parameters:
        key -
        Returns:
        NodeImpl
      • getName

        public String getName()
        Specified by:
        getName in interface jakarta.validation.Path.Node
      • setName

        public void setName​(String name)
        Parameters:
        name - the name to set
      • isInIterable

        public boolean isInIterable()
        Specified by:
        isInIterable in interface jakarta.validation.Path.Node
      • setInIterable

        public void setInIterable​(boolean inIterable)
        Set whether this node represents a contained value of an Iterable or Map.
        Parameters:
        inIterable -
      • getIndex

        public Integer getIndex()
        Specified by:
        getIndex in interface jakarta.validation.Path.Node
      • setIndex

        public void setIndex​(Integer index)
        Set the index of this node, implying inIterable.
        Parameters:
        index -
      • setParameterIndex

        public void setParameterIndex​(Integer parameterIndex)
      • getKey

        public Object getKey()
        Specified by:
        getKey in interface jakarta.validation.Path.Node
      • setKey

        public void setKey​(Object key)
        Set the map key of this node, implying inIterable.
        Parameters:
        key -
      • as

        public <T extends jakarta.validation.Path.Node> T as​(Class<T> nodeType)
        Specified by:
        as in interface jakarta.validation.Path.Node
      • toString

        public String toString()
        Specified by:
        toString in interface jakarta.validation.Path.Node
        Overrides:
        toString in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getParameterIndex

        public int getParameterIndex()
      • getParameterTypes

        public List<Class<?>> getParameterTypes()
      • setParameterTypes

        public void setParameterTypes​(List<Class<?>> parameterTypes)
      • getContainerClass

        public Class<?> getContainerClass()
      • getTypeArgumentIndex

        public Integer getTypeArgumentIndex()
      • inIterable

        public NodeImpl inIterable()