public class LooseConfigData extends XmlDocument
doc| Constructor and Description |
|---|
LooseConfigData() |
| Modifier and Type | Method and Description |
|---|---|
Element |
addArchive(Element parent,
String target) |
void |
addArchive(File src,
String target) |
Element |
addArchive(String target) |
void |
addDir(Element parent,
File src,
String target) |
void |
addDir(File src,
String target) |
void |
addFile(Element parent,
File src,
String target) |
void |
addFile(Element parent,
File src,
String target,
File copyDirectory) |
void |
addFile(File src,
String target) |
Element |
getDocumentRoot() |
void |
setProjectRoot(String root)
Set both projectRoot and sourceOnDiskName to control the name used when an element is added.
|
void |
setSourceOnDiskName(String name)
Set both projectRoot and sourceOnDiskName to control the name used when an element is added.
|
void |
toXmlFile(File xmlFile) |
addNewlineBeforeFirstElement, createDocument, createDocument, isIndented, isWhitespace, writeXMLDocument, writeXMLDocumentpublic LooseConfigData()
throws ParserConfigurationException
ParserConfigurationExceptionpublic void setProjectRoot(String root)
root - the name of the directory that contains the actual project resourcespublic void setSourceOnDiskName(String name)
name - the name to use in the config file as the apparent location of the resourcepublic void addDir(File src, String target) throws DOMException, IOException
DOMExceptionIOExceptionpublic void addDir(Element parent, File src, String target) throws DOMException, IOException
DOMExceptionIOExceptionpublic void addFile(File src, String target) throws DOMException, IOException
DOMExceptionIOExceptionpublic void addFile(Element parent, File src, String target) throws DOMException, IOException
DOMExceptionIOExceptionpublic void addFile(Element parent, File src, String target, File copyDirectory) throws DOMException, IOException
DOMExceptionIOExceptionpublic void addArchive(File src, String target) throws DOMException, IOException
DOMExceptionIOExceptionpublic Element getDocumentRoot()
Copyright © 2022 the original author or authors.