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

Method Detail

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.


Submit a bug or feature

Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.

Generated on 10-February-2011 12:41

Scripting on this page tracks web page traffic, but does not change the content in any way.