public class DocumentTools
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static DocumentTools |
INSTANCE |
| Constructor | Description |
|---|---|
DocumentTools() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
cleanup(org.w3c.dom.Document bundleDocument) |
|
javax.xml.parsers.DocumentBuilder |
getDocumentBuilder() |
|
org.w3c.dom.Element |
getSingleChildElement(org.w3c.dom.Element entityItemElement,
java.lang.String elementName) |
|
org.w3c.dom.Element |
getSingleElement(org.w3c.dom.Element entityItemElement,
java.lang.String entityName) |
|
javax.xml.transform.Transformer |
getTransformer() |
|
org.w3c.dom.Document |
parse(java.io.File file) |
|
org.w3c.dom.Document |
parse(java.lang.String string) |
public static final DocumentTools INSTANCE
public javax.xml.transform.Transformer getTransformer()
public javax.xml.parsers.DocumentBuilder getDocumentBuilder()
public org.w3c.dom.Document parse(java.io.File file)
throws DocumentParseException
DocumentParseExceptionpublic org.w3c.dom.Document parse(java.lang.String string)
throws DocumentParseException
DocumentParseExceptionpublic org.w3c.dom.Element getSingleElement(org.w3c.dom.Element entityItemElement,
java.lang.String entityName)
throws DocumentParseException
DocumentParseExceptionpublic org.w3c.dom.Element getSingleChildElement(org.w3c.dom.Element entityItemElement,
java.lang.String elementName)
public void cleanup(org.w3c.dom.Document bundleDocument)