org.jopendocument.dom.template.statements
Class BaseStatement

java.lang.Object
  extended by org.jopendocument.dom.template.statements.Statement
      extended by org.jopendocument.dom.template.statements.BaseStatement
Direct Known Subclasses:
ForEach, If, SetStmt

public abstract class BaseStatement
extends Statement


Field Summary
 
Fields inherited from class org.jopendocument.dom.template.statements.Statement
stmtNS
 
Constructor Summary
BaseStatement(java.lang.String name)
           
 
Method Summary
 boolean matches(org.jdom.Element elem)
          Find representations of this statement.
 void prepare(org.jdom.Element scriptElem)
          Creates an element named Statement.getName().
static void setScriptLang(java.lang.String scriptLang)
           
 
Methods inherited from class org.jopendocument.dom.template.statements.Statement
execute, getName, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseStatement

public BaseStatement(java.lang.String name)
Method Detail

setScriptLang

public static void setScriptLang(java.lang.String scriptLang)

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 scriptElem)
             throws TemplateException
Description copied from class: Statement
Creates an element named Statement.getName().

Specified by:
prepare in class Statement
Parameters:
scriptElem - an element that returned true with Statement.matches(Element).
Throws:
TemplateException