org.jopendocument.dom.template.statements
Class Include

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

public class Include
extends Statement


Field Summary
 
Fields inherited from class org.jopendocument.dom.template.statements.Statement
stmtNS
 
Constructor Summary
Include()
           
 
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().
 
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

Include

public Include()
Method Detail

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.