org.objectweb.kilim.description
Interface TemplateElement

All Superinterfaces:
java.lang.Cloneable
All Known Subinterfaces:
BasicElement, BasicNamedElement, NamedElement
All Known Implementing Classes:
BasicNamedElementImpl, EventSource, InlinedElement, Instance, Reference, Slot, TemplateElementImpl

public interface TemplateElement
extends java.lang.Cloneable

Author:
horn This is the parent interface for all interfaces and classes corresponding to template elements

Method Summary
 java.lang.Object clone()
          clones a template
 TemplateDescription getContainingTemplate()
          returns the template in which the element is defined.
 java.util.Iterator getTemplateDefHierarchy()
          returns as an iterator all templates in which an element has been defined and overloaded.
 void setContainingTemplate(TemplateDescription aTemplate)
          sets the template in which the element is defined.
 

Method Detail

getContainingTemplate

public TemplateDescription getContainingTemplate()
returns the template in which the element is defined.

Returns:
Template

setContainingTemplate

public void setContainingTemplate(TemplateDescription aTemplate)
                           throws KilimException
sets the template in which the element is defined.

Parameters:
aTemplate - : the template.
Throws:
KilimException - :

clone

public java.lang.Object clone()
clones a template

Returns:
Object

getTemplateDefHierarchy

public java.util.Iterator getTemplateDefHierarchy()
returns as an iterator all templates in which an element has been defined and overloaded.

Returns:
Iterator