org.jopendocument.dom.template.statements
Class If

java.lang.Object
  extended by org.jopendocument.dom.template.statements.Statement
      extended by org.jopendocument.dom.template.statements.BaseStatement
          extended by org.jopendocument.dom.template.statements.If

public class If
extends BaseStatement

If tag: conditionally displays a document element.
Attributes:


Field Summary
 
Fields inherited from class org.jopendocument.dom.template.statements.Statement
stmtNS
 
Constructor Summary
If()
           
 
Method Summary
 void execute(Processor processor, org.jdom.Element tag, DataModel model)
          Should produce valid OpenDocument XML.
 void prepare(org.jdom.Element script, org.jdom.Element command)
           
 
Methods inherited from class org.jopendocument.dom.template.statements.BaseStatement
matches, prepare, removeSection, setScriptLang
 
Methods inherited from class org.jopendocument.dom.template.statements.Statement
getAncestorByName, getElement, getName, pullUp, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

If

public If()
Method Detail

prepare

public void prepare(org.jdom.Element script,
                    org.jdom.Element command)
             throws TemplateException
Specified by:
prepare in class BaseStatement
Throws:
TemplateException

execute

public void execute(Processor processor,
                    org.jdom.Element tag,
                    DataModel model)
             throws TemplateException
Description copied from class: Statement
Should produce valid OpenDocument XML.

Specified by:
execute in class Statement
Parameters:
processor - the processor.
tag - an element that has been prepared.
model - the data.
Throws:
TemplateException


Copyright © 2010 jOpenDocument All Rights Reserved.