org.jopendocument.dom.template
Class EngineTemplate

java.lang.Object
  extended by org.jopendocument.dom.template.EngineTemplate
Direct Known Subclasses:
JavaScriptFileTemplate, RhinoTemplate

public class EngineTemplate
extends Object


Constructor Summary
EngineTemplate(File f, DataModel engine)
           
EngineTemplate(InputStream i, DataModel engine)
           
 
Method Summary
 ODSingleXMLDocument createDocument()
           
 void hideListItem(String name)
           
 void hideParagraph(String name)
           
 void hideSection(String name)
           
 void hideTable(String name)
           
 void hideTableRow(String name)
           
 File saveAs(File outFile)
           
 void setField(String key, Object value)
           
 void showListItem(String name)
           
 void showParagraph(String name)
           
 void showSection(String name)
           
 void showTable(String name)
           
 void showTableRow(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EngineTemplate

public EngineTemplate(File f,
                      DataModel engine)
               throws IOException,
                      TemplateException,
                      org.jdom.JDOMException
Throws:
IOException
TemplateException
org.jdom.JDOMException

EngineTemplate

public EngineTemplate(InputStream i,
                      DataModel engine)
               throws IOException,
                      TemplateException,
                      org.jdom.JDOMException
Throws:
IOException
TemplateException
org.jdom.JDOMException
Method Detail

showParagraph

public final void showParagraph(String name)

hideParagraph

public final void hideParagraph(String name)

showTable

public final void showTable(String name)

hideTable

public final void hideTable(String name)

showTableRow

public final void showTableRow(String name)

hideTableRow

public final void hideTableRow(String name)

showSection

public final void showSection(String name)

hideSection

public final void hideSection(String name)

showListItem

public final void showListItem(String name)

hideListItem

public final void hideListItem(String name)

setField

public void setField(String key,
                     Object value)

createDocument

public ODSingleXMLDocument createDocument()
                                   throws TemplateException
Throws:
TemplateException

saveAs

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


Copyright © 2010 jOpenDocument All Rights Reserved.