javax.validation
Interface Path.Node
- Enclosing interface:
- Path
public static interface Path.Node
Represents an element of a navigation path
Method Summary |
java.lang.Integer |
getIndex()
|
java.lang.Object |
getKey()
|
java.lang.String |
getName()
Property name the node represents
or null if representing an entity on the leaf node
(in particular the node in a Path representing
the root object has its name null). |
boolean |
isInIterable()
|
getName
java.lang.String getName()
- Property name the node represents
or null if representing an entity on the leaf node
(in particular the node in a
Path
representing
the root object has its name null).
- Returns:
- property name the node represents
isInIterable
boolean isInIterable()
- Returns:
- true if the node represents an object contained in an Iterable
or in a Map.
getIndex
java.lang.Integer getIndex()
- Returns:
- The index the node is placed in if contained
in an array or List. Null otherwise.
getKey
java.lang.Object getKey()
- Returns:
- The key the node is placed in if contained
in a Map. Null otherwise.
Copyright © 2007-2009. All Rights Reserved.