org.finra.jtaf.core.parsing.helpers
Class ElementScanner

java.lang.Object
  extended by org.finra.jtaf.core.parsing.helpers.ElementScanner

public class ElementScanner
extends Object

Convenience class that can be used to process a sequence of Elements. This will most likely be used in the preProcessing stage.


Constructor Summary
ElementScanner(List<Element> elements)
           
 
Method Summary
 boolean hasNext()
           
 Element match()
          Convenience method: Returns this.peek() and moves to the next element
 Element peek()
           
 Element tryMatch(String name)
          Shortcut method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementScanner

public ElementScanner(List<Element> elements)
Method Detail

hasNext

public final boolean hasNext()

peek

public Element peek()

tryMatch

public Element tryMatch(String name)
Shortcut method

Parameters:
name -
Returns:

match

public Element match()
Convenience method: Returns this.peek() and moves to the next element

Returns:


Copyright © 2014. All rights reserved.