org.infolayer.templates.elements
Class TE_context
java.lang.Object
org.kxml2.kdom.Element
org.infolayer.templates.TemplateElement
org.infolayer.templates.elements.TE_context
- public class TE_context
- extends TemplateElement
The context element changes the evaluation
context for all child elements. The new evaluation
context (self) is determined by the expr-attribute.
Without the expr attribute, the <context>
may be used as helper element, for instance to hold namespace declarations
that shall not appear in the generated XML code.
Attributes
- expr
- Contains an OCL expression determining the new evaluation context
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TE_context
public TE_context()
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