Constructor and Description |
---|
ChildInfoImpl(Name name,
String uniqueId,
int index)
Creates a new serializable
ChildInfoImpl . |
Modifier and Type | Method and Description |
---|---|
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() |
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).public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object object)
equals
in class Object
Object.equals(Object)
public String toString()
toString
in class Object
Object.toString()
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.