public class NodeImpl extends java.lang.Object implements javax.validation.Path.PropertyNode, javax.validation.Path.MethodNode, javax.validation.Path.ConstructorNode, javax.validation.Path.BeanNode, javax.validation.Path.ParameterNode, javax.validation.Path.ReturnValueNode, javax.validation.Path.CrossParameterNode, javax.validation.Path.ContainerElementNode, PropertyNode, ContainerElementNode, java.io.Serializable
Path.Node
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CROSS_PARAMETER_NODE_NAME |
static java.lang.String |
ITERABLE_ELEMENT_NODE_NAME |
static java.lang.String |
LIST_ELEMENT_NODE_NAME |
static java.lang.String |
MAP_KEY_NODE_NAME |
static java.lang.String |
MAP_VALUE_NODE_NAME |
static java.lang.String |
RETURN_VALUE_NODE_NAME |
Modifier and Type | Method and Description |
---|---|
<T extends javax.validation.Path.Node> |
as(java.lang.Class<T> nodeType) |
java.lang.String |
asString() |
int |
buildHashCode() |
static NodeImpl |
createBeanNode(NodeImpl parent) |
static NodeImpl |
createConstructorNode(java.lang.String name,
NodeImpl parent,
java.lang.Class<?>[] parameterTypes) |
static NodeImpl |
createContainerElementNode(java.lang.String name,
NodeImpl parent) |
static NodeImpl |
createCrossParameterNode(NodeImpl parent) |
static NodeImpl |
createMethodNode(java.lang.String name,
NodeImpl parent,
java.lang.Class<?>[] parameterTypes) |
static NodeImpl |
createParameterNode(java.lang.String name,
NodeImpl parent,
int parameterIndex) |
static NodeImpl |
createPropertyNode(java.lang.String name,
NodeImpl parent) |
static NodeImpl |
createReturnValue(NodeImpl parent) |
boolean |
equals(java.lang.Object obj) |
java.lang.Class<?> |
getContainerClass() |
java.lang.Integer |
getIndex() |
java.lang.Object |
getKey() |
javax.validation.ElementKind |
getKind() |
java.lang.String |
getName() |
int |
getParameterIndex() |
java.util.List<java.lang.Class<?>> |
getParameterTypes() |
NodeImpl |
getParent() |
java.lang.Integer |
getTypeArgumentIndex() |
java.lang.Object |
getValue() |
int |
hashCode() |
boolean |
isInIterable() |
boolean |
isIterable() |
static NodeImpl |
makeIterable(NodeImpl node) |
static NodeImpl |
makeIterableAndSetIndex(NodeImpl node,
java.lang.Integer index) |
static NodeImpl |
makeIterableAndSetMapKey(NodeImpl node,
java.lang.Object key) |
static NodeImpl |
setPropertyValue(NodeImpl node,
java.lang.Object value) |
static NodeImpl |
setTypeParameter(NodeImpl node,
java.lang.Class<?> containerClass,
java.lang.Integer typeArgumentIndex) |
java.lang.String |
toString() |
public static final java.lang.String RETURN_VALUE_NODE_NAME
public static final java.lang.String CROSS_PARAMETER_NODE_NAME
public static final java.lang.String ITERABLE_ELEMENT_NODE_NAME
public static final java.lang.String LIST_ELEMENT_NODE_NAME
public static final java.lang.String MAP_KEY_NODE_NAME
public static final java.lang.String MAP_VALUE_NODE_NAME
public static NodeImpl createPropertyNode(java.lang.String name, NodeImpl parent)
public static NodeImpl createContainerElementNode(java.lang.String name, NodeImpl parent)
public static NodeImpl createParameterNode(java.lang.String name, NodeImpl parent, int parameterIndex)
public static NodeImpl createMethodNode(java.lang.String name, NodeImpl parent, java.lang.Class<?>[] parameterTypes)
public static NodeImpl createConstructorNode(java.lang.String name, NodeImpl parent, java.lang.Class<?>[] parameterTypes)
public static NodeImpl makeIterableAndSetIndex(NodeImpl node, java.lang.Integer index)
public static NodeImpl makeIterableAndSetMapKey(NodeImpl node, java.lang.Object key)
public static NodeImpl setTypeParameter(NodeImpl node, java.lang.Class<?> containerClass, java.lang.Integer typeArgumentIndex)
public final java.lang.String getName()
getName
in interface javax.validation.Path.Node
public final boolean isInIterable()
isInIterable
in interface javax.validation.Path.Node
public final boolean isIterable()
public final java.lang.Integer getIndex()
getIndex
in interface javax.validation.Path.Node
public final java.lang.Object getKey()
getKey
in interface javax.validation.Path.Node
public java.lang.Class<?> getContainerClass()
getContainerClass
in interface javax.validation.Path.BeanNode
getContainerClass
in interface javax.validation.Path.ContainerElementNode
getContainerClass
in interface javax.validation.Path.PropertyNode
public java.lang.Integer getTypeArgumentIndex()
getTypeArgumentIndex
in interface javax.validation.Path.BeanNode
getTypeArgumentIndex
in interface javax.validation.Path.ContainerElementNode
getTypeArgumentIndex
in interface javax.validation.Path.PropertyNode
public final NodeImpl getParent()
public javax.validation.ElementKind getKind()
getKind
in interface javax.validation.Path.Node
public <T extends javax.validation.Path.Node> T as(java.lang.Class<T> nodeType)
as
in interface javax.validation.Path.Node
public java.util.List<java.lang.Class<?>> getParameterTypes()
getParameterTypes
in interface javax.validation.Path.ConstructorNode
getParameterTypes
in interface javax.validation.Path.MethodNode
public int getParameterIndex()
getParameterIndex
in interface javax.validation.Path.ParameterNode
public java.lang.Object getValue()
getValue
in interface ContainerElementNode
getValue
in interface PropertyNode
public java.lang.String toString()
toString
in interface javax.validation.Path.Node
toString
in class java.lang.Object
public final java.lang.String asString()
public final int buildHashCode()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2007-2022 Red Hat, Inc. All Rights Reserved