org.jopendocument.dom.template.statements
Class If
java.lang.Object
org.jopendocument.dom.template.statements.Statement
org.jopendocument.dom.template.statements.BaseStatement
org.jopendocument.dom.template.statements.If
public class If
- extends BaseStatement
If tag: conditionally displays a document element.
Attributes:
- element (required): the document element to which this tag applies, e.g. "table-row"
- test (required): expression that must be true for the element to be displayed
| Fields inherited from class org.jopendocument.dom.template.statements.Statement |
stmtNS |
|
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)
|
If
public If()
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.