Top Constructors Methods
com.sun.tools.xjc.util

public final Class DOMUtils

extends Object
Class Inheritance
Imports
java.util.ArrayList, .List, javax.xml.namespace.QName, org.w3c.dom.DOMException, .Document, .Element, .Node, .NodeList

Author
Vivek Pandey
Version
1.0

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Element[]
getChildElements(Element parent, String nsUri, String localPart)

Gets the child elements of the given name.

public static Element[]
getChildElements(Element parent)

Gets all the child elements.

public static Element
getElement(Document parent, String name)

public static Element
getElement(Document parent, QName qname)

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

public static Element[]
public static String
public static Element
getFirstChildElement(Element parent, String nsUri, String localPart)

Gets the fist child of the given name, or null.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DOMUtilsback to summary
private DOMUtils()

Method Detail

getChildElementsback to summary
public static Element[] getChildElements(Element parent, String nsUri, String localPart)

Gets the child elements of the given name.

getChildElementsback to summary
public static Element[] getChildElements(Element parent)

Gets all the child elements.

getElementback to summary
public static Element getElement(Document parent, String name)
getElementback to summary
public static Element getElement(Document parent, QName qname)
getElementback to summary
public static Element getElement(Document parent, String namespaceURI, String localName)
getElementsback to summary
public static Element[] getElements(NodeList children)
getElementTextback to summary
public static String getElementText(Element element) throws DOMException
getFirstChildElementback to summary
public static Element getFirstChildElement(Element parent, String nsUri, String localPart)

Gets the fist child of the given name, or null.