org.infolayer.templates.elements
Class TE_choose

java.lang.Object
  extended byorg.kxml2.kdom.Element
      extended byorg.infolayer.templates.TemplateElement
          extended byorg.infolayer.templates.elements.TE_choose

public class TE_choose
extends TemplateElement

The choose element allows conditional processing of sub-elements. Template processing continues in the first <t:when>-subelement where the evaluation result of the expr-attribute is true. The evaluation context remains unchanged. If a matching case is found, no further sub-elements are considered. If no matching case is found, template processing continues in the optional {\em<t:otherwise>} element.

Restrictions for Child Elements

Allowed sub-elements are any number of <t:when> elements, followed by up to one <t:otherwise> element.

See Also:
Serialized Form

Constructor Summary
TE_choose()
           
 
Method Summary
 void apply(XmlSerializer xw, IlRequest context, Bindings bindings)
          Applies the template mechanism.
 
Methods inherited from class org.infolayer.templates.TemplateElement
applyChildren, assertNoChildren, assertNoChildren, getAttributeValue, getVarDefs, init, readTextContent, setVarDefs, writeAttributes
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TE_choose

public TE_choose()
Method Detail

apply

public void apply(XmlSerializer xw,
                  IlRequest context,
                  Bindings bindings)
           throws java.io.IOException
Description copied from class: TemplateElement
Applies the template mechanism. Must be overwritten in the

Overrides:
apply in class TemplateElement
Throws:
java.io.IOException