org.jopendocument.dom.template
Class RhinoFileTemplate

java.lang.Object
  extended by org.jopendocument.dom.template.Template
      extended by org.jopendocument.dom.template.RhinoFileTemplate

public class RhinoFileTemplate
extends Template


Field Summary
 
Fields inherited from class org.jopendocument.dom.template.Template
contentTemplate
 
Constructor Summary
RhinoFileTemplate(File f)
           
RhinoFileTemplate(String fileName)
           
 
Method Summary
 ODSingleXMLDocument createDocument()
           
 void hideParagraph(String name)
           
 File saveAs(File outFile)
           
 void setField(String key, Object value)
           
 void showParagraph(String name)
           
 
Methods inherited from class org.jopendocument.dom.template.Template
createDocument, createDocument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RhinoFileTemplate

public RhinoFileTemplate(String fileName)
                  throws IOException,
                         TemplateException,
                         org.jdom.JDOMException
Throws:
IOException
TemplateException
org.jdom.JDOMException

RhinoFileTemplate

public RhinoFileTemplate(File f)
                  throws IOException,
                         TemplateException,
                         org.jdom.JDOMException
Throws:
IOException
TemplateException
org.jdom.JDOMException
Method Detail

createDocument

public ODSingleXMLDocument createDocument()
                                   throws TemplateException
Throws:
TemplateException

showParagraph

public void showParagraph(String name)

hideParagraph

public void hideParagraph(String name)

setField

public void setField(String key,
                     Object value)

saveAs

public File saveAs(File outFile)
            throws IOException,
                   TemplateException
Throws:
IOException
TemplateException


Copyright © 2010 jOpenDocument All Rights Reserved.