org.hibernate.validator.engine
Class NodeImpl

java.lang.Object
  extended by org.hibernate.validator.engine.NodeImpl
All Implemented Interfaces:
java.io.Serializable, javax.validation.Path.Node
Direct Known Subclasses:
MethodParameterNodeImpl, MethodReturnValueNodeImpl

public class NodeImpl
extends java.lang.Object
implements javax.validation.Path.Node, java.io.Serializable

Immutable implementation of a Path.Node.

Author:
Hardy Ferentschik
See Also:
Serialized Form

Field Summary
static java.lang.String INDEX_CLOSE
           
static java.lang.String INDEX_OPEN
           
 
Constructor Summary
NodeImpl(java.lang.String name, NodeImpl parent, boolean indexable, java.lang.Integer index, java.lang.Object key)
           
 
Method Summary
 java.lang.String asString()
           
 boolean equals(java.lang.Object o)
           
 java.lang.Integer getIndex()
           
 java.lang.Object getKey()
           
 java.lang.String getName()
           
 NodeImpl getParent()
           
 int hashCode()
           
 boolean isInIterable()
           
 boolean isIterable()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

INDEX_OPEN

public static final java.lang.String INDEX_OPEN
See Also:
Constant Field Values

INDEX_CLOSE

public static final java.lang.String INDEX_CLOSE
See Also:
Constant Field Values
Constructor Detail

NodeImpl

public NodeImpl(java.lang.String name,
                NodeImpl parent,
                boolean indexable,
                java.lang.Integer index,
                java.lang.Object key)
Method Detail

getName

public final java.lang.String getName()
Specified by:
getName in interface javax.validation.Path.Node

isInIterable

public final boolean isInIterable()
Specified by:
isInIterable in interface javax.validation.Path.Node

isIterable

public final boolean isIterable()

getIndex

public final java.lang.Integer getIndex()
Specified by:
getIndex in interface javax.validation.Path.Node

getKey

public final java.lang.Object getKey()
Specified by:
getKey in interface javax.validation.Path.Node

getParent

public final NodeImpl getParent()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

asString

public final java.lang.String asString()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2011 Oracle Corporation. All Rights Reserved.