org.mmbase.util.xml
Class ModuleWriter

java.lang.Object
  extended byorg.mmbase.util.xml.DocumentReader
      extended byorg.mmbase.util.xml.DocumentWriter
          extended byorg.mmbase.util.xml.ModuleWriter

public class ModuleWriter
extends DocumentWriter

Version:
$Id: ModuleWriter.java,v 1.8 2005/09/12 14:07:39 pierre Exp $
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.DocumentReader
document, DTD_ERROR, DTD_ERROR_1_0, FILENOTFOUND, PUBLIC_ID_ERROR, PUBLIC_ID_ERROR_1_0
 
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, getRootElement, getSystemId, hasAttribute, main, registerPublicIDs, setNodeTextValue, 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.
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 build 1.8.1.20060716