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

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

public class ParserHelper
extends Object

Helper class for parsing XML file.


Constructor Summary
ParserHelper()
           
 
Method Summary
static List<Element> getChildren(Element elem)
          A list of the immediate children of elem
static Element getFirstChildElementCaseInsensitive(Element root, String elementName)
           
static Element getOptionalElement(Element root, String xpath)
           
static Element getRequireElement(Element root, String xpath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParserHelper

public ParserHelper()
Method Detail

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.