|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fesenmeyer.dbnormalizer.core.configuration.xml.DOMUtil
public class DOMUtil
Class providing utility methods for retrieving information from DOM-Documents.
Constructor Summary | |
---|---|
DOMUtil()
|
Method Summary | |
---|---|
static Element |
getFirstChildElement(Element element,
String name)
Gets the first child of the element specified by argument element which has the tag name specified by argument name. |
static Element |
getFirstElement(Element element,
String name)
Gets the first descendant of the element specified by argument element which has the tag name specified by argument name. |
static String |
getSimpleElementText(Element element)
Gets all child text nodes of an element as a single string. |
static String |
getSimpleElementText(Element element,
String name)
Gets the text content of the first descendant of the element specified by argument element which has the tag name specified by argument name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DOMUtil()
Method Detail |
---|
public static Element getFirstElement(Element element, String name)
element
- an elementname
- a tag name
null
, otherwisepublic static Element getFirstChildElement(Element element, String name)
getFirstElement(Element, String)
method.
element
- an elementname
- a tag name
null
, otherwisepublic static String getSimpleElementText(Element element, String name)
element
- an elementname
- a tag name
null
, otherwisepublic static String getSimpleElementText(Element element)
element
- the element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |