org.jopendocument.dom.template.statements
Class BaseStatement
java.lang.Object
org.jopendocument.dom.template.statements.Statement
org.jopendocument.dom.template.statements.BaseStatement
- Direct Known Subclasses:
- ForEach, If, SetStmt
public abstract class BaseStatement
- extends Statement
| Fields inherited from class org.jopendocument.dom.template.statements.Statement |
stmtNS |
|
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BaseStatement
public BaseStatement(java.lang.String name)
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