com.sun.tools.xjc.util
Class DOMUtils

java.lang.Object
  extended by com.sun.tools.xjc.util.DOMUtils

public class DOMUtils
extends Object


Constructor Summary
DOMUtils()
           
 
Method Summary
static Element[] getChildElements(Element parent)
          Gets all the child elements.
static Element[] getChildElements(Element parent, String nsUri, String localPart)
          Gets the child elements of the given name.
static Element getElement(Document parent, QName qname)
           
static Element getElement(Document parent, String name)
           
static Element getElement(Document parent, String namespaceURI, String localName)
           
static Element[] getElements(NodeList children)
           
static String getElementText(Element element)
           
static Element getFirstChildElement(Element parent, String nsUri, String localPart)
          Gets the fist child of the given name, or null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMUtils

public DOMUtils()
Method Detail

getFirstChildElement

public static Element getFirstChildElement(Element parent,
                                           String nsUri,
                                           String localPart)
Gets the fist child of the given name, or null.


getChildElements

public static Element[] getChildElements(Element parent,
                                         String nsUri,
                                         String localPart)
Gets the child elements of the given name.


getChildElements

public static Element[] getChildElements(Element parent)
Gets all the child elements.


getElementText

public static String getElementText(Element element)
                             throws DOMException
Throws:
DOMException

getElement

public static Element getElement(Document parent,
                                 String name)

getElement

public static Element getElement(Document parent,
                                 QName qname)

getElement

public static Element getElement(Document parent,
                                 String namespaceURI,
                                 String localName)

getElements

public static Element[] getElements(NodeList children)