public final class NodeImpl extends Object implements javax.validation.Path.Node, Serializable
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.
|
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() |
String |
getName() |
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 |
setName(String name) |
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 Object getKey()
getKey
in interface javax.validation.Path.Node
public void setKey(Object key)
inIterable
.key
- Copyright © 2010–2016 The Apache Software Foundation. All rights reserved.