org.mmbase.util.xml
Class ModuleWriter

java.lang.Object
  extended by org.mmbase.util.xml.DocumentReader
      extended by org.mmbase.util.xml.DocumentWriter
          extended by org.mmbase.util.xml.ModuleWriter

public class ModuleWriter
extends DocumentWriter

Version:
$Id: ModuleWriter.java 34900 2009-05-01 16:29:42Z michiel $
Author:
Daniel Ockeloen

Field Summary
protected  Module module
          Hold a reference to the module for which to create an XML document.
 
Fields inherited from class org.mmbase.util.xml.DocumentWriter
publicId, systemId
 
Fields inherited from class org.mmbase.util.xml.DocumentReader
document, DTD_ERROR, DTD_ERROR_1_0, FILENOTFOUND, PUBLIC_ID_ERROR, PUBLIC_ID_ERROR_1_0, utilProperties
 
Constructor Summary
ModuleWriter(Module module)
          Constructs the document writer.
 
Method Summary
protected  void generate()
          Generates the document.
 
Methods inherited from class org.mmbase.util.xml.DocumentWriter
addComment, addComment, addComment, addContentElement, generateDocument, getDocument, getMessage, getMessage, getMessage, getMessage, getMessageRetriever, includeComments, setIncludeComments, write, writeToFile, writeToStream, writeToString
 
Methods inherited from class org.mmbase.util.xml.DocumentReader
appendChild, 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, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

module

protected Module module
Hold a reference to the module for which to create an XML document.

Constructor Detail

ModuleWriter

public ModuleWriter(Module module)
             throws DOMException
Constructs the document writer. The constructor calls its super to create a basic document, based on the module document type.

Parameters:
module - the module for which to create an XML document.
Throws:
DOMException
Method Detail

generate

protected void generate()
                 throws DOMException
Generates the document. Can only be called once.

Specified by:
generate in class DocumentWriter
Throws:
DOMException - when an error occurred during generation


MMBase 2.0-SNAPSHOT - null