org.oXML.engine.template
Class EvalTemplate

java.lang.Object
  extended byorg.oXML.engine.template.EvalTemplate
All Implemented Interfaces:
Template
Direct Known Subclasses:
AttributeTemplate, CommentTemplate, LogTemplate, ProcessingInstructionTemplate, ReturnTemplate, TextTemplate, VariableTemplate, WriteTemplate

public class EvalTemplate
extends java.lang.Object
implements Template

A Template that substitutes either the text in the attribute called "select", or the first child node if it is a Text node.


Field Summary
protected  Template body
           
protected  Expression select
           
 
Constructor Summary
  EvalTemplate(Expression select)
           
protected EvalTemplate(Template body)
           
 
Method Summary
protected  Node evaluate(RuntimeContext env)
           
 void process(RuntimeContext env)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

select

protected Expression select

body

protected Template body
Constructor Detail

EvalTemplate

public EvalTemplate(Expression select)

EvalTemplate

protected EvalTemplate(Template body)
Method Detail

evaluate

protected Node evaluate(RuntimeContext env)
                 throws ObjectBoxException
Throws:
ObjectBoxException

process

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

toString

public java.lang.String toString()