Class ChildInfoImpl
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.ChildInfoImpl
-
- All Implemented Interfaces:
Serializable,ChildInfo
public class ChildInfoImpl extends Object implements ChildInfo, Serializable
ChildInfoImplimplements a serializableChildInfo.- See Also:
- Serialized Form
-
-
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 intgetIndex()Returns the index of the childNode.NamegetName()Returns the name of the childNode.StringgetUniqueID()Returns the uniqueID of the childNodeornullif the Node is not identified by a uniqueID.
-
-
-
Method Detail
-
getName
public Name getName()
Returns the name of the childNode.
-
getUniqueID
public String getUniqueID()
Returns the uniqueID of the childNodeornullif the Node is not identified by a uniqueID.- Specified by:
getUniqueIDin interfaceChildInfo- Returns:
- The uniqueID of the child
Nodeornull. - 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: theNoderepresented by thisChildInfohas same name siblings this method will always return the default value (1).
-
-