public class ApplicationWriter extends DocumentWriter
| Modifier and Type | Field and Description |
|---|---|
protected MMBase |
mmbase |
protected ApplicationReader |
reader |
document, DTD_ERROR, DTD_ERROR_1_0, FILENOTFOUND, PUBLIC_ID_ERROR, PUBLIC_ID_ERROR_1_0| Constructor and Description |
|---|
ApplicationWriter(ApplicationReader reader,
MMBase mmbase)
Constructs the document writer.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAllowedRelationList(Element root) |
protected void |
addContextSourceList(Element root) |
protected void |
addDataSourceList(Element root) |
protected void |
addNeededBuilderList(Element root) |
protected void |
addNeededRelDefList(Element root) |
protected void |
addRelationSourceList(Element root) |
protected void |
addRequirements(Element root) |
protected void |
generate()
Generates the document.
|
boolean |
writeApplicationToFile(String filepath,
String path) |
boolean |
writeBuilderToFile(String filepath,
String path) |
void |
writeToPath(String targetPath,
Logger logger)
Generates the documents for this application and store it as a set of files in the given path.
|
addComment, addComment, addComment, addContentElement, generateDocument, getDocument, getMessage, getMessage, getMessage, getMessage, getMessageRetriever, includeComments, setIncludeComments, write, writeToFile, writeToStream, writeToStringappendChild, getAttribute, getChildElements, getChildElements, getChildElements, getChildElements, getDocumentBuilder, getDocumentBuilder, getDocumentBuilder, getDocumentBuilder, getElementAttributeValue, getElementAttributeValue, getElementByPath, getElementByPath, getElementName, getElementValue, getElementValue, getNodeTextValue, getNodeTextValue, getRootElement, getSystemId, hasAttribute, main, registerPublicIDs, setNodeTextValue, setPrefix, setSystemId, toDocument, validate, validateprotected ApplicationReader reader
protected MMBase mmbase
public ApplicationWriter(ApplicationReader reader, MMBase mmbase) throws DOMException
reader - the reader for the original applicationmmbase - the mmbase instance to get the application data fromDOMException - When failed to parse xml or writeprotected void generate()
throws DOMException
generate in class DocumentWriterDOMException - when an error occurred during generationprotected void addRequirements(Element root)
protected void addNeededBuilderList(Element root)
protected void addNeededRelDefList(Element root)
protected void addAllowedRelationList(Element root)
protected void addDataSourceList(Element root)
protected void addRelationSourceList(Element root)
protected void addContextSourceList(Element root)
public void writeToPath(String targetPath, Logger logger) throws IOException, SAXException, SearchQueryException
targetPath - the filepath (directory) where the configuration is to be storedlogger - This thing must receive the errorsSAXException - if one or more documents are malformedIOException - if one or more files cannot be writtenSearchQueryException - if data could not be obtained from the databaseMMBase 1.9-SNAPSHOT - ${javadoctimestamp}