Class ListNodeList

  • All Implemented Interfaces:
    org.w3c.dom.NodeList

    public class ListNodeList
    extends java.lang.Object
    implements org.w3c.dom.NodeList
    A simple class that implements the DOM NodeList interface by wrapping an Java List instace.
    Version:
    $Id: ListNodeList.java 1808001 2017-09-11 09:51:29Z ssteiner $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List list  
    • Constructor Summary

      Constructors 
      Constructor Description
      ListNodeList​(java.util.List list)  
    • Method Summary

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

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

      • list

        protected java.util.List list
    • Constructor Detail

      • ListNodeList

        public ListNodeList​(java.util.List list)
    • 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