org.infolayer.templates.html
Class TE_tree

java.lang.Object
  extended byorg.kxml2.kdom.Element
      extended byorg.infolayer.templates.TemplateElement
          extended byorg.infolayer.templates.html.TE_tree

public class TE_tree
extends TemplateElement

The <t:tree> element displays a nested tree of instances or classes. If the context or root element is a class, the class inheritance tree is displayed. Otherwise, the children attribute and the tagged value il-children are used to determine an association. The tree is built by simply following this association.

See Also:
Serialized Form

Constructor Summary
TE_tree()
           
 
Method Summary
 void apply(XmlSerializer xw, IlRequest context, Bindings bindings)
          Applies the template mechanism.
 void init()
           
static void writeClassTree(XmlSerializer xw, IlRequest context, UmlClass umlClass, java.lang.Object object)
           
static void writeObjectTree(XmlSerializer xw, IlRequest context, UmlObject umlObject, UmlProperty children, java.util.Hashtable visited)
           
static void writeObjectTree(XmlSerializer xw, IlRequest context, UmlObject umlObject, UmlProperty children, TemplateElement te, Bindings bindings, java.util.Hashtable visited)
           
 
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_tree

public TE_tree()
Method Detail

init

public void init()
Overrides:
init in class TemplateElement

writeClassTree

public static void writeClassTree(XmlSerializer xw,
                                  IlRequest context,
                                  UmlClass umlClass,
                                  java.lang.Object object)
                           throws java.io.IOException
Throws:
java.io.IOException

writeObjectTree

public static void writeObjectTree(XmlSerializer xw,
                                   IlRequest context,
                                   UmlObject umlObject,
                                   UmlProperty children,
                                   java.util.Hashtable visited)
                            throws java.io.IOException
Throws:
java.io.IOException

writeObjectTree

public static void writeObjectTree(XmlSerializer xw,
                                   IlRequest context,
                                   UmlObject umlObject,
                                   UmlProperty children,
                                   TemplateElement te,
                                   Bindings bindings,
                                   java.util.Hashtable visited)
                            throws java.io.IOException
Throws:
java.io.IOException

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