org.finra.jtaf.core.parsing.helpers
Class ParserHelper
java.lang.Object
org.finra.jtaf.core.parsing.helpers.ParserHelper
public class ParserHelper
- extends Object
Helper class for parsing XML file.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParserHelper
public ParserHelper()
getChildren
public static final List<Element> getChildren(Element elem)
- A list of the immediate children of elem
- Parameters:
elem
-
- Returns:
getOptionalElement
public static final Element getOptionalElement(Element root,
String xpath)
throws MultipleMatchesException,
NestedXPathException
- Throws:
MultipleMatchesException
NestedXPathException
getRequireElement
public static final Element getRequireElement(Element root,
String xpath)
throws MultipleMatchesException,
MissingRequiredElementException,
NestedXPathException
- Throws:
MultipleMatchesException
MissingRequiredElementException
NestedXPathException
getFirstChildElementCaseInsensitive
public static final Element getFirstChildElementCaseInsensitive(Element root,
String elementName)
Copyright © 2014. All rights reserved.