org.infolayer.templates.elements
Class TE_valueOf

java.lang.Object
  extended byorg.kxml2.kdom.Element
      extended byorg.infolayer.templates.TemplateElement
          extended byorg.infolayer.templates.elements.TE_valueOf
Direct Known Subclasses:
TE_eval, TE_valueOf, TE_valueOf

public class TE_valueOf
extends TemplateElement

Inserts the evaluation result of the OCL expression contained in the expr-attribute. If an format-attribute is present, the contained format string is taken into account. Child elements of <t:eval> are processed only if the evaluation results in OclUndefined.

Attributes

expr
(required) Determines the replacement value.
format
Formatting instructions for the evaluation result.

See Also:
Serialized Form

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

Constructor Detail

TE_valueOf

public TE_valueOf()
Method Detail

init

public void init()
Overrides:
init in class TemplateElement

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