public class NodeImpl extends Object implements javax.validation.Path.Node, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
NodeImpl.BeanNodeImpl |
static class |
NodeImpl.ConstructorNodeImpl |
static class |
NodeImpl.CrossParameterNodeImpl |
static class |
NodeImpl.MethodNodeImpl |
static class |
NodeImpl.ParameterNodeImpl |
static class |
NodeImpl.PropertyNodeImpl |
static class |
NodeImpl.ReturnValueNodeImpl |
Constructor and Description |
---|
NodeImpl(String name)
Create a new NodeImpl instance.
|
Modifier and Type | Method and Description |
---|---|
static StringBuilder |
appendNode(javax.validation.Path.Node node,
StringBuilder to)
Append a Node to the specified StringBuilder.
|
<T extends javax.validation.Path.Node> |
as(Class<T> nodeType) |
static NodeImpl |
atIndex(Integer index)
Get a NodeImpl indexed from the preceding node (or root).
|
static NodeImpl |
atKey(Object key)
Get a NodeImpl keyed from the preceding node (or root).
|
boolean |
equals(Object o) |
Integer |
getIndex() |
Object |
getKey() |
javax.validation.ElementKind |
getKind() |
String |
getName() |
int |
getParameterIndex() |
List<Class<?>> |
getParameterTypes() |
int |
hashCode() |
boolean |
isInIterable() |
void |
setIndex(Integer index)
Set the index of this node, implying
inIterable . |
void |
setInIterable(boolean inIterable)
|
void |
setKey(Object key)
Set the map key of this node, implying
inIterable . |
void |
setKind(javax.validation.ElementKind kind) |
void |
setName(String name) |
void |
setParameterIndex(Integer parameterIndex) |
void |
setParameterTypes(List<Class<?>> parameterTypes) |
String |
toString() |
public NodeImpl(String name)
name
- public static StringBuilder appendNode(javax.validation.Path.Node node, StringBuilder to)
node
- to
- public static NodeImpl atIndex(Integer index)
index
- public static NodeImpl atKey(Object key)
key
- public String getName()
getName
in interface javax.validation.Path.Node
public void setName(String name)
name
- the name to setpublic boolean isInIterable()
isInIterable
in interface javax.validation.Path.Node
public void setInIterable(boolean inIterable)
inIterable
- public Integer getIndex()
getIndex
in interface javax.validation.Path.Node
public void setIndex(Integer index)
inIterable
.index
- public void setParameterIndex(Integer parameterIndex)
public Object getKey()
getKey
in interface javax.validation.Path.Node
public void setKey(Object key)
inIterable
.key
- public javax.validation.ElementKind getKind()
getKind
in interface javax.validation.Path.Node
public void setKind(javax.validation.ElementKind kind)
public <T extends javax.validation.Path.Node> T as(Class<T> nodeType)
as
in interface javax.validation.Path.Node
public int getParameterIndex()
Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.