org.oXML.engine.template
Class VariableTemplate

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

public class VariableTemplate
extends EvalTemplate

A Template that substitutes either the string value of the expression in the attribute called "select" if present, or the string value of the child nodes if not.


Field Summary
 
Fields inherited from class org.oXML.engine.template.EvalTemplate
body, select
 
Constructor Summary
VariableTemplate(Name name, Expression select)
           
VariableTemplate(Name name, Template body)
           
 
Method Summary
 void process(RuntimeContext env)
           
 
Methods inherited from class org.oXML.engine.template.EvalTemplate
evaluate, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VariableTemplate

public VariableTemplate(Name name,
                        Expression select)

VariableTemplate

public VariableTemplate(Name name,
                        Template body)
Method Detail

process

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