Class NodeListElementEnumerator


  • public class NodeListElementEnumerator
    extends java.lang.Object
    INTERNAL:

    Purpose: This class is used to enumerate over the XML elements. This is because some parsers fail to ignore whitespaces and may include them as test elements. This enumerator will ensure that only NodeElements are returned.

    Since:
    TopLink 4.0
    Author:
    Gordon Yorke
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int index  
      protected org.w3c.dom.NodeList list  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasMoreNodes()  
      org.w3c.dom.Node nextNode()  
      • Methods inherited from class java.lang.Object

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

      • index

        protected int index
      • list

        protected org.w3c.dom.NodeList list
    • Constructor Detail

      • NodeListElementEnumerator

        public NodeListElementEnumerator​(org.w3c.dom.NodeList list)
    • Method Detail

      • hasMoreNodes

        public boolean hasMoreNodes()
      • nextNode

        public org.w3c.dom.Node nextNode()