javax.validation
Interface Path.Node

Enclosing interface:
Path

public static interface Path.Node

Represents an element of a navigation path.


Method Summary
 ElementDescriptor getElementDescriptor()
          Returns a descriptor for the element (bean, property, method etc.) represented by this node.
 Integer getIndex()
           
 Object getKey()
           
 String getName()
          Name of the property, constructor, method or parameter which the node represents or null if representing an entity on the leaf node or the return value of a constructor or method (in particular the node in a Path representing the root object has its name null).
 boolean isInIterable()
           
 

Method Detail

getName

String getName()
Name of the property, constructor, method or parameter which the node represents or null if representing an entity on the leaf node or the return value of a constructor or method (in particular the node in a Path representing the root object has its name null).

Returns:
Name of the property, constructor, method or parameter which the node represents.

isInIterable

boolean isInIterable()
Returns:
true if the node represents an object contained in an Iterable or in a Map.

getIndex

Integer getIndex()
Returns:
The index the node is placed in if contained in an array or List. Null otherwise.

getKey

Object getKey()
Returns:
The key the node is placed in if contained in a Map. Null otherwise.

getElementDescriptor

ElementDescriptor getElementDescriptor()
Returns a descriptor for the element (bean, property, method etc.) represented by this node. The specific type of the element can be determined using ElementDescriptor.getKind().

Returns:
An element descriptor for this node.


Copyright © 2007-2012. All Rights Reserved.