org.infolayer.templates.elements
Class TE_variable

java.lang.Object
  extended byorg.kxml2.kdom.Element
      extended byorg.infolayer.templates.TemplateElement
          extended byorg.infolayer.templates.elements.TE_variable
Direct Known Subclasses:
TE_let, TE_param

public class TE_variable
extends TemplateElement

The <t:variable>-element declares a variable. The variable can be accessed in OCL expressions in template elements following the variable declaration. The scope of the variable ends at the closing tag of the immediate parent element. In contrast fo XSLT, it is possible to alter the value of a variable with the <t:assign>-element.

Attributes

name
(required) The name of the variable to be declared.
expr
(required) An OCL-expression determining the initial value and type of the variable.

See Also:
Serialized Form

Constructor Summary
TE_variable()
           
 
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_variable

public TE_variable()
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