Package org.apache.jackrabbit.spi2davex
Class ChildInfoImpl
- java.lang.Object
-
- org.apache.jackrabbit.spi2davex.ChildInfoImpl
-
-
Constructor Summary
Constructors Constructor Description ChildInfoImpl(Name name, String uniqueId, int index)
Creates a new serializableChildInfoImpl
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
int
getIndex()
Returns the index of the childNode
.Name
getName()
Returns the name of the childNode
.String
getUniqueID()
Returns the uniqueID of the childNode
ornull
if the Node is not identified by a uniqueID.int
hashCode()
String
toString()
-
-
-
Method Detail
-
getName
public Name getName()
Returns the name of the childNode
.
-
getUniqueID
public String getUniqueID()
Returns the uniqueID of the childNode
ornull
if the Node is not identified by a uniqueID.- Specified by:
getUniqueID
in interfaceChildInfo
- Returns:
- The uniqueID of the child
Node
ornull
. - See Also:
ItemId for a description of the uniqueID defined by the SPI item identifiers.
-
getIndex
public int getIndex()
Returns the index of the childNode
. Note, that the index is 1-based. In other words: theNode
represented by thisChildInfo
has same name siblings this method will always return the default value (1).
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classObject
- See Also:
Object.hashCode()
-
equals
public boolean equals(Object object)
- Overrides:
equals
in classObject
- See Also:
Object.equals(Object)
-
toString
public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
-