Class AbstractParentNode.ChildNodes

  • All Implemented Interfaces:
    java.io.Serializable, org.w3c.dom.NodeList
    Enclosing class:
    AbstractParentNode

    protected class AbstractParentNode.ChildNodes
    extends java.lang.Object
    implements org.w3c.dom.NodeList, java.io.Serializable
    To manage the children of this node.
    See Also:
    Serialized Form
    • Field Detail

      • firstChild

        protected ExtendedNode firstChild
        The first child.
      • lastChild

        protected ExtendedNode lastChild
        The last child.
      • children

        protected int children
        The number of children.
      • elementChildren

        protected int elementChildren
        The number of Element children.
    • Constructor Detail

      • ChildNodes

        public ChildNodes()
        Creates a new ChildNodes object.
    • Method Detail

      • item

        public org.w3c.dom.Node item​(int index)
        DOM: Implements NodeList.item(int).
        Specified by:
        item in interface org.w3c.dom.NodeList
      • getLength

        public int getLength()
        DOM: Implements NodeList.getLength().
        Specified by:
        getLength in interface org.w3c.dom.NodeList
        Returns:
        children.
      • append

        public ExtendedNode append​(ExtendedNode n)
        Appends a node to the tree. The node is assumed not to be a DocumentFragment instance.