Package dk.netarkivet.common.xml
Class XmlBuilder
- java.lang.Object
-
- dk.netarkivet.common.xml.XmlBuilder
-
public abstract class XmlBuilder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected org.w3c.dom.Document
xmlDoc
-
Constructor Summary
Constructors Constructor Description XmlBuilder()
XmlBuilder(org.w3c.dom.Document xmlDoc)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.dom4j.Document
getDoc()
protected static javax.xml.parsers.DocumentBuilder
getParser()
protected static org.w3c.dom.Document
parseFile(java.lang.String name)
Creates a default XmlDoc based on the order.xml file on the classpath.java.lang.String
toString()
-
-
-
Field Detail
-
xmlDoc
protected final org.w3c.dom.Document xmlDoc
-
-
Constructor Detail
-
XmlBuilder
public XmlBuilder()
-
XmlBuilder
public XmlBuilder(org.w3c.dom.Document xmlDoc)
-
-
Method Detail
-
getDoc
public org.dom4j.Document getDoc()
-
getParser
protected static javax.xml.parsers.DocumentBuilder getParser()
-
parseFile
protected static org.w3c.dom.Document parseFile(java.lang.String name)
Creates a default XmlDoc based on the order.xml file on the classpath.- Returns:
- The loaded default XmlDoc.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-