org.infolayer.templates.elements
Class TE_param

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

public class TE_param
extends TE_variable

The <t:param>-element declares a variable that is initialized from a parameter set via the <t:withParam> element. The variable can be accessed in template elements following the declaration. The scope of the variable ends at the closing tag of the immediate parent element.

Attributes

name
(required) The name of the variable to be declared.
expr
If the parameter is not set, the expression is used as default value
type
The type of the variable, it must match the actual type set by the withParam element. If not set, the type defaults to OclAny

See Also:
Serialized Form

Constructor Summary
TE_param()
           
 
Method Summary
 void apply(XmlSerializer xw, IlRequest request, Bindings bindings)
          Applies the template mechanism.
 
Methods inherited from class org.infolayer.templates.elements.TE_variable
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_param

public TE_param()
Method Detail

apply

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

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