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.5 2003/03/10 11:51:17 pierre Exp $
Author:
Daniel Ockeloen

Field Summary
 
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, getIncludeComments, getMessage, getMessage, getMessage, getMessage, getMessageRetriever, setIncludeComments, write, writeToFile, writeToStream, writeToString
 
Methods inherited from class org.mmbase.util.xml.DocumentReader
getDocumentBuilder, getDocumentBuilder, getFileName, getNodeTextValue, registerPublicIDs, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleWriter

public ModuleWriter(Module module)
             throws org.w3c.dom.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 org.w3c.dom.DOMException
Generates the document. Can only be called once.

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


MMBase build 1.7.1.20041002