org.finra.jtaf.core.parsing.helpers
Class ElementScanner
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ElementScanner
public ElementScanner(List<Element> elements)
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.