com.mchange.v1.xml
Class DomParseUtils

java.lang.Object
  extended by com.mchange.v1.xml.DomParseUtils

public final class DomParseUtils
extends Object


Method Summary
static String allText(Element elem)
           
static String allText(Element elem, boolean trim)
           
static String allTextFromElement(Element elem)
          Deprecated. use allText(Element elem)
static String allTextFromElement(Element elem, boolean trim)
          Deprecated. use allText(Element elem, boolean trim)
static String[] allTextFromImmediateChildElements(Element parent, String tagName)
           
static String[] allTextFromImmediateChildElements(Element parent, String tagName, boolean trim)
           
static String allTextFromUniqueChild(Element elem, String childTagName)
           
static String allTextFromUniqueChild(Element elem, String childTagName, boolean trim)
           
static String allTextFromUniqueImmediateChild(Element elem, String childTagName)
           
static String attrValFromElement(Element element, String attrName)
          Deprecated. use Element.getAttribute(String val)
static NodeList getImmediateChildElementsByTagName(Element parent, String tagName)
          Deprecated. use immediateChildrenByTagName( Element parent, String tagName )
static NodeList immediateChildElementsByTagName(Element parent, String tagName)
           
static Element uniqueChild(Element elem, String childTagName)
           
static Element uniqueChildByTagName(Element elem, String childTagName)
          Deprecated. use uniqueChild(Element elem, String childTagName)
static Element uniqueImmediateChild(Element elem, String childTagName)
           
static Element uniqueImmediateChildByTagName(Element elem, String childTagName)
          Deprecated. use uniqueImmediateChild(Element elem, String childTagName)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

allTextFromUniqueChild

public static String allTextFromUniqueChild(Element elem,
                                            String childTagName)
                                     throws DOMException
Returns:
null if child doesn't exist.
Throws:
DOMException

allTextFromUniqueChild

public static String allTextFromUniqueChild(Element elem,
                                            String childTagName,
                                            boolean trim)
                                     throws DOMException
Returns:
null if child doesn't exist.
Throws:
DOMException

uniqueChild

public static Element uniqueChild(Element elem,
                                  String childTagName)
                           throws DOMException
Throws:
DOMException

uniqueChildByTagName

public static Element uniqueChildByTagName(Element elem,
                                           String childTagName)
                                    throws DOMException
Deprecated. use uniqueChild(Element elem, String childTagName)

Throws:
DOMException

allText

public static String allText(Element elem)
                      throws DOMException
Throws:
DOMException

allText

public static String allText(Element elem,
                             boolean trim)
                      throws DOMException
Throws:
DOMException

allTextFromElement

public static String allTextFromElement(Element elem)
                                 throws DOMException
Deprecated. use allText(Element elem)

Throws:
DOMException

allTextFromElement

public static String allTextFromElement(Element elem,
                                        boolean trim)
                                 throws DOMException
Deprecated. use allText(Element elem, boolean trim)

Throws:
DOMException

allTextFromImmediateChildElements

public static String[] allTextFromImmediateChildElements(Element parent,
                                                         String tagName)
                                                  throws DOMException
Throws:
DOMException

allTextFromImmediateChildElements

public static String[] allTextFromImmediateChildElements(Element parent,
                                                         String tagName,
                                                         boolean trim)
                                                  throws DOMException
Throws:
DOMException

immediateChildElementsByTagName

public static NodeList immediateChildElementsByTagName(Element parent,
                                                       String tagName)
                                                throws DOMException
Throws:
DOMException

getImmediateChildElementsByTagName

public static NodeList getImmediateChildElementsByTagName(Element parent,
                                                          String tagName)
                                                   throws DOMException
Deprecated. use immediateChildrenByTagName( Element parent, String tagName )

Throws:
DOMException

allTextFromUniqueImmediateChild

public static String allTextFromUniqueImmediateChild(Element elem,
                                                     String childTagName)
                                              throws DOMException
Throws:
DOMException

uniqueImmediateChild

public static Element uniqueImmediateChild(Element elem,
                                           String childTagName)
                                    throws DOMException
Throws:
DOMException

uniqueImmediateChildByTagName

public static Element uniqueImmediateChildByTagName(Element elem,
                                                    String childTagName)
                                             throws DOMException
Deprecated. use uniqueImmediateChild(Element elem, String childTagName)

Throws:
DOMException

attrValFromElement

public static String attrValFromElement(Element element,
                                        String attrName)
                                 throws DOMException
Deprecated. use Element.getAttribute(String val)

Throws:
DOMException