Class IterableNodeList

  • All Implemented Interfaces:
    java.lang.Iterable<org.w3c.dom.Node>

    public final class IterableNodeList
    extends java.lang.Object
    implements java.lang.Iterable<org.w3c.dom.Node>
    Provides an iterable view to a NodeList, the Iterator that can be obtained from this Iterable will be read-only.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int length  
      private org.w3c.dom.NodeList nl  
    • Constructor Summary

      Constructors 
      Constructor Description
      IterableNodeList​(org.w3c.dom.NodeList nl)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<org.w3c.dom.Node> asList​(org.w3c.dom.NodeList l)
      Turns the NodeList into a list.
      java.util.Iterator<org.w3c.dom.Node> iterator()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Field Detail

      • nl

        private final org.w3c.dom.NodeList nl
      • length

        private final int length
    • Constructor Detail

      • IterableNodeList

        public IterableNodeList​(org.w3c.dom.NodeList nl)
    • Method Detail

      • iterator

        public java.util.Iterator<org.w3c.dom.Node> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<org.w3c.dom.Node>
      • asList

        public static java.util.List<org.w3c.dom.Node> asList​(org.w3c.dom.NodeList l)
        Turns the NodeList into a list.