|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.bval.jsr303.util.NodeImpl
public final class NodeImpl
Description: a node (property) as part of a Path.
(Implementation based on reference implementation)
Constructor Summary | |
---|---|
NodeImpl(Path.Node node)
Create a new NodeImpl instance. |
|
NodeImpl(String name)
Create a new NodeImpl instance. |
Method Summary | |
---|---|
static StringBuilder |
appendNode(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)
Set whether this node represents a contained value of an Iterable or Map . |
void |
setKey(Object key)
Set the map key of this node, implying inIterable . |
void |
setName(String name)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NodeImpl(String name)
name
- NodeImpl(Path.Node node)
node
- Method Detail |
---|
public static StringBuilder appendNode(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 Path.Node
public void setName(String name)
name
- the name to setpublic boolean isInIterable()
isInIterable
in interface Path.Node
public void setInIterable(boolean inIterable)
Iterable
or Map
.
inIterable
- public Integer getIndex()
getIndex
in interface Path.Node
public void setIndex(Integer index)
inIterable
.
index
- public Object getKey()
getKey
in interface Path.Node
public void setKey(Object key)
inIterable
.
key
- public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |