Package org.jaxen.dom

Class NamespaceNode.EmptyNodeList

  • All Implemented Interfaces:
    org.w3c.dom.NodeList
    Enclosing class:
    NamespaceNode

    private static class NamespaceNode.EmptyNodeList
    extends java.lang.Object
    implements org.w3c.dom.NodeList
    A node list with no members.

    This class is necessary for the Node.getChildNodes() method, which must return an empty node list rather than null when there are no children.

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private EmptyNodeList()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getLength()  
      org.w3c.dom.Node item​(int index)  
      • Methods inherited from class java.lang.Object

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

      • EmptyNodeList

        private EmptyNodeList()
    • Method Detail

      • getLength

        public int getLength()
        Specified by:
        getLength in interface org.w3c.dom.NodeList
        See Also:
        NodeList.getLength()
      • item

        public org.w3c.dom.Node item​(int index)
        Specified by:
        item in interface org.w3c.dom.NodeList
        See Also:
        NodeList.item(int)