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()
           
 boolean isInIterable()
           
 

Method Detail

getName

java.lang.String getName()
Returns:
Property name the node represents or null if the leaf node and representing an entity (in particular the node representing the root object has its name null)

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.