Top Constructors Methods
com.sun.tools.xjc.reader.dtd.bindinfo

public final Class DOMUtil

extends Object
Class Inheritance
Imports
java.util.ArrayList, .List, org.w3c.dom.Element, .Node, .NodeList

Author
Kohsuke Kawaguchi

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static boolean
equals(String a, String b)

Used for defensive string comparisons, as many DOM methods often return null depending on how they are created.

private static String
fixNull(String s)

DOM API returns null for the default namespace whereas it should return "".

pack-priv static String
public static String
getAttribute(Element e, String nsUri, String local)

public static List<Element>
public static List<Element>
public static Element
getElement(Element e, String nsUri, String localName)

public static Element
getElement(Element e, String localName)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DOMUtilback to summary
public DOMUtil()

Method Detail

equalsback to summary
private static boolean equals(String a, String b)

Used for defensive string comparisons, as many DOM methods often return null depending on how they are created.

fixNullback to summary
private static String fixNull(String s)

DOM API returns null for the default namespace whereas it should return "".

getAttributeback to summary
pack-priv static String getAttribute(Element e, String attName)
getAttributeback to summary
public static String getAttribute(Element e, String nsUri, String local)
getChildElementsback to summary
public static List<Element> getChildElements(Element e)
getChildElementsback to summary
public static List<Element> getChildElements(Element e, String localName)
getElementback to summary
public static Element getElement(Element e, String nsUri, String localName)
getElementback to summary
public static Element getElement(Element e, String localName)