org.infolayer.templates.elements
Class TE_choose
java.lang.Object
org.kxml2.kdom.Element
org.infolayer.templates.TemplateElement
org.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
Method Summary |
void |
apply(XmlSerializer xw,
IlRequest context,
Bindings bindings)
Applies the template mechanism. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TE_choose
public TE_choose()
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