Class ChildInfoImpl

  • All Implemented Interfaces:
    java.io.Serializable, ChildInfo

    public class ChildInfoImpl
    extends java.lang.Object
    implements ChildInfo, java.io.Serializable
    ChildInfoImpl implements a serializable ChildInfo.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ChildInfoImpl​(Name name, java.lang.String uniqueId, int index)
      Creates a new serializable ChildInfoImpl.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getIndex()
      Returns the index of the child Node.
      Name getName()
      Returns the name of the child Node.
      java.lang.String getUniqueID()
      Returns the uniqueID of the child Node or null if the Node is not identified by a uniqueID.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ChildInfoImpl

        public ChildInfoImpl​(Name name,
                             java.lang.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.
      • 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.