Class XmlDocument
- java.lang.Object
-
- io.openliberty.tools.common.plugins.config.XmlDocument
-
- Direct Known Subclasses:
ApplicationXmlDocument,LooseConfigData,ServerConfigXmlDocument
public abstract class XmlDocument extends Object
-
-
Constructor Summary
Constructors Constructor Description XmlDocument()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddNewlineBeforeFirstElement(File f)voidcreateDocument(File xmlFile)voidcreateDocument(String rootElement)protected booleanisIndented()protected booleanisWhitespace(Node node)voidwriteXMLDocument(File f)voidwriteXMLDocument(String fileName)
-
-
-
Field Detail
-
doc
protected Document doc
-
-
Method Detail
-
createDocument
public void createDocument(String rootElement) throws ParserConfigurationException
- Throws:
ParserConfigurationException
-
createDocument
public void createDocument(File xmlFile) throws ParserConfigurationException, SAXException, IOException
-
writeXMLDocument
public void writeXMLDocument(String fileName) throws IOException, TransformerException
- Throws:
IOExceptionTransformerException
-
writeXMLDocument
public void writeXMLDocument(File f) throws IOException, TransformerException
- Throws:
IOExceptionTransformerException
-
isIndented
protected boolean isIndented()
-
isWhitespace
protected boolean isWhitespace(Node node)
-
addNewlineBeforeFirstElement
public static void addNewlineBeforeFirstElement(File f) throws IOException
- Throws:
IOException
-
-