public class ChildInfoImpl extends Object implements ChildInfo, Serializable
ChildInfoImpl
implements a serializable ChildInfo
.Constructor and Description |
---|
ChildInfoImpl(Name name,
String uniqueId,
int index)
Creates a new serializable
ChildInfoImpl . |
Modifier and Type | Method and Description |
---|---|
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. |
public Name getName()
Node
.public String getUniqueID()
Node
or null
if the Node is not identified by a uniqueID.getUniqueID
in interface ChildInfo
Node
or null
.ItemId for a description of the uniqueID defined by the SPI
item identifiers.
public int getIndex()
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).Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.