org.apache.jackrabbit.spi2davex
Class ChildInfoImpl

java.lang.Object
  extended by org.apache.jackrabbit.spi2davex.ChildInfoImpl
All Implemented Interfaces:
ChildInfo

public class ChildInfoImpl
extends Object
implements ChildInfo

ChildInfoImpl...


Constructor Summary
ChildInfoImpl(Name name, String uniqueId, int index)
          Creates a new serializable ChildInfoImpl.
 
Method Summary
 boolean equals(Object object)
           
 int getIndex()
          Returns the index of the child Node.
 Name getName()
          Returns the name of the child Node.
 String getUniqueID()
          Returns the uniqueID of the child Node or null if the Node is not identified by a uniqueID.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChildInfoImpl

public ChildInfoImpl(Name name,
                     String uniqueId,
                     int index)
Creates a new serializable ChildInfoImpl.

Parameters:
name - the name of the child node.
uniqueId - the unique id of the child node or null.
index - the index of the child node.
Method Detail

getName

public Name getName()
Returns the name of the child Node.

Specified by:
getName in interface ChildInfo
Returns:
The name of the child Node.

getUniqueID

public String getUniqueID()
Returns the uniqueID of the child Node or null if the Node is not identified by a uniqueID.

Specified by:
getUniqueID in interface ChildInfo
Returns:
The uniqueID of the child Node or null.
See Also:
ItemId for a description of the uniqueID defined by the SPI item identifiers.

getIndex

public int getIndex()
Returns the index of the child Node. Note, that the index is 1-based. In other words: the Node represented by this ChildInfo has same name siblings this method will always return the default value (1).

Specified by:
getIndex in interface ChildInfo
Returns:
Returns the index of the child Node.

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object object)
Overrides:
equals in class Object
See Also:
Object.equals(Object)

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.