org.jopendocument.dom.template.statements
Class Include
java.lang.Object
org.jopendocument.dom.template.statements.Statement
org.jopendocument.dom.template.statements.Include
public class Include
- extends Statement
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. |
boolean |
matches(org.jdom.Element elem)
Find representations of this statement. |
void |
prepare(org.jdom.Element script)
Creates an element named Statement.getName() . |
Include
public Include()
matches
public boolean matches(org.jdom.Element elem)
- Description copied from class:
Statement
- Find representations of this statement.
- Specified by:
matches
in class Statement
- Parameters:
elem
- the element to test.
- Returns:
true
if elem should prepared by this statement.
prepare
public void prepare(org.jdom.Element script)
- Description copied from class:
Statement
- Creates an element named
Statement.getName()
.
- Specified by:
prepare
in class Statement
- Parameters:
script
- an element that returned true
with Statement.matches(Element)
.
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.