org.oXML.engine.template
Class ForEachTemplate

java.lang.Object
  extended byorg.oXML.engine.template.ForEachTemplate
All Implemented Interfaces:
Template

public class ForEachTemplate
extends java.lang.Object
implements Template


Field Summary
protected  Template body
           
protected  Expression delim
           
protected  Expression from
           
protected  Expression in
           
protected  Name name
           
protected  Expression select
           
protected  Expression step
           
protected  Expression to
           
 
Constructor Summary
ForEachTemplate(Name name, Expression from, Expression to, Expression step, Template body)
           
ForEachTemplate(Name name, Expression in, Expression delim, Template body)
           
ForEachTemplate(Name name, Expression select, Template body)
           
 
Method Summary
 void process(RuntimeContext env)
           
protected  void set(RuntimeContext env, Node value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

select

protected Expression select

body

protected Template body

name

protected Name name

from

protected Expression from

to

protected Expression to

step

protected Expression step

in

protected Expression in

delim

protected Expression delim
Constructor Detail

ForEachTemplate

public ForEachTemplate(Name name,
                       Expression select,
                       Template body)

ForEachTemplate

public ForEachTemplate(Name name,
                       Expression in,
                       Expression delim,
                       Template body)
Parameters:
in - string expression, not null
delim - token delimiter, or null for default

ForEachTemplate

public ForEachTemplate(Name name,
                       Expression from,
                       Expression to,
                       Expression step,
                       Template body)
Parameters:
from - start of iteration, or null for default
to - end of iteration, not null
step - increment of iteration, or null for default
Method Detail

process

public void process(RuntimeContext env)
             throws ObjectBoxException
Specified by:
process in interface Template
Throws:
ObjectBoxException

set

protected void set(RuntimeContext env,
                   Node value)