org.oXML.engine.template
Class IfTemplate

java.lang.Object
  extended byorg.oXML.engine.template.IfTemplate
All Implemented Interfaces:
Template
Direct Known Subclasses:
WhenTemplate, WhileTemplate

public class IfTemplate
extends java.lang.Object
implements Template


Field Summary
protected  Template body
           
protected  Expression cond
           
 
Constructor Summary
IfTemplate(Expression cond, Template body)
           
 
Method Summary
 void process(RuntimeContext env)
           
protected  boolean test(RuntimeContext ctxt)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cond

protected Expression cond

body

protected Template body
Constructor Detail

IfTemplate

public IfTemplate(Expression cond,
                  Template body)
Method Detail

process

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

test

protected boolean test(RuntimeContext ctxt)
                throws ObjectBoxException
Throws:
ObjectBoxException

toString

public java.lang.String toString()