Class NodeImpl
java.lang.Object
org.hibernate.validator.internal.engine.path.NodeImpl
- All Implemented Interfaces:
Path.BeanNode
,Path.ConstructorNode
,Path.ContainerElementNode
,Path.CrossParameterNode
,Path.MethodNode
,Path.Node
,Path.ParameterNode
,Path.PropertyNode
,Path.ReturnValueNode
,Serializable
,ContainerElementNode
,PropertyNode
public class NodeImpl
extends Object
implements Path.PropertyNode, Path.MethodNode, Path.ConstructorNode, Path.BeanNode, Path.ParameterNode, Path.ReturnValueNode, Path.CrossParameterNode, Path.ContainerElementNode, PropertyNode, ContainerElementNode, Serializable
Immutable implementation of a
Path.Node
.- Author:
- Hardy Ferentschik, Gunnar Morling, Guillaume Smet
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription<T extends Path.Node>
Tfinal String
asString()
final int
static NodeImpl
createBeanNode
(NodeImpl parent) static NodeImpl
createConstructorNode
(String name, NodeImpl parent, Class<?>[] parameterTypes) static NodeImpl
createContainerElementNode
(String name, NodeImpl parent) static NodeImpl
createCrossParameterNode
(NodeImpl parent) static NodeImpl
createMethodNode
(String name, NodeImpl parent, Class<?>[] parameterTypes) static NodeImpl
createParameterNode
(String name, NodeImpl parent, int parameterIndex) static NodeImpl
createPropertyNode
(String name, NodeImpl parent) static NodeImpl
createReturnValue
(NodeImpl parent) boolean
Class<?>
final Integer
getIndex()
final Object
getKey()
getKind()
final String
getName()
int
final NodeImpl
getValue()
int
hashCode()
final boolean
final boolean
static NodeImpl
makeIterable
(NodeImpl node) static NodeImpl
makeIterableAndSetIndex
(NodeImpl node, Integer index) static NodeImpl
makeIterableAndSetMapKey
(NodeImpl node, Object key) static NodeImpl
setPropertyValue
(NodeImpl node, Object value) static NodeImpl
setTypeParameter
(NodeImpl node, Class<?> containerClass, Integer typeArgumentIndex) toString()
-
Field Details
-
RETURN_VALUE_NODE_NAME
- See Also:
-
CROSS_PARAMETER_NODE_NAME
- See Also:
-
ITERABLE_ELEMENT_NODE_NAME
- See Also:
-
LIST_ELEMENT_NODE_NAME
- See Also:
-
MAP_KEY_NODE_NAME
- See Also:
-
MAP_VALUE_NODE_NAME
- See Also:
-
-
Method Details
-
createPropertyNode
-
createContainerElementNode
-
createParameterNode
-
createCrossParameterNode
-
createMethodNode
-
createConstructorNode
-
createBeanNode
-
createReturnValue
-
makeIterable
-
makeIterableAndSetIndex
-
makeIterableAndSetMapKey
-
setPropertyValue
-
setTypeParameter
-
getName
-
isInIterable
public final boolean isInIterable()- Specified by:
isInIterable
in interfacePath.Node
-
isIterable
public final boolean isIterable() -
getIndex
-
getKey
-
getContainerClass
- Specified by:
getContainerClass
in interfacePath.BeanNode
- Specified by:
getContainerClass
in interfacePath.ContainerElementNode
- Specified by:
getContainerClass
in interfacePath.PropertyNode
-
getTypeArgumentIndex
- Specified by:
getTypeArgumentIndex
in interfacePath.BeanNode
- Specified by:
getTypeArgumentIndex
in interfacePath.ContainerElementNode
- Specified by:
getTypeArgumentIndex
in interfacePath.PropertyNode
-
getParent
-
getKind
-
as
-
getParameterTypes
- Specified by:
getParameterTypes
in interfacePath.ConstructorNode
- Specified by:
getParameterTypes
in interfacePath.MethodNode
-
getParameterIndex
public int getParameterIndex()- Specified by:
getParameterIndex
in interfacePath.ParameterNode
-
getValue
- Specified by:
getValue
in interfaceContainerElementNode
- Specified by:
getValue
in interfacePropertyNode
- Returns:
- Returns the value of the bean property represented by this node.
-
toString
-
asString
-
buildHashCode
public final int buildHashCode() -
hashCode
public int hashCode() -
equals
-