org.jopendocument.dom.template.statements
Class ForEach

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

public class ForEach
extends BaseStatement

ForEach tag: repeats a document element for each item in a collection.
Attributes:


Field Summary
 
Fields inherited from class org.jopendocument.dom.template.statements.Statement
stmtNS
 
Constructor Summary
ForEach()
           
 
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)
           
 
Methods inherited from class org.jopendocument.dom.template.statements.BaseStatement
matches, prepare, removeSection, setScriptLang
 
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

ForEach

public ForEach()
Method Detail

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.