org.infolayer.templates.elements
Class TE_include

java.lang.Object
  extended byorg.kxml2.kdom.Element
      extended byorg.infolayer.templates.TemplateElement
          extended byorg.infolayer.templates.ParameterizedElement
              extended byorg.infolayer.templates.elements.TE_include
All Implemented Interfaces:
Parameterized

public class TE_include
extends ParameterizedElement

The <include>-element inserts the file denoted by the file attribute. Template processing is continued with the given file instead of any child elements. <param> child elements can be used to hand parameters over to the included file. The current evaluation context is handed over automatically. For including templates based on the context type dynamically, please use the <t:eval> attribute and specify the template name in the format attribute.

Attributes

file
Name of the file to be included

Restrictions for Child Elements

Only <t:param> child elements are allowed.

See Also:
Serialized Form

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

Constructor Detail

TE_include

public TE_include()
Method Detail

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