org.objectweb.kilim.description
Class TemplateElementImpl

java.lang.Object
  extended byorg.objectweb.kilim.description.TemplateElementImpl
All Implemented Interfaces:
java.lang.Cloneable, TemplateElement
Direct Known Subclasses:
BasicNamedElementImpl, Binding, InlinedElement, Instance, Plug, Reference, Slot, Trigger

public abstract class TemplateElementImpl
extends java.lang.Object
implements TemplateElement

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

Field Summary
private  TemplateDescription containingTemplate
           
 
Constructor Summary
protected TemplateElementImpl()
           
protected TemplateElementImpl(TemplateDescription aTemplate)
          A public constructor for TemplateElementImpl.
 
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 aDescription)
          sets the template in which the element is defined.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

containingTemplate

private TemplateDescription containingTemplate
Constructor Detail

TemplateElementImpl

protected TemplateElementImpl(TemplateDescription aTemplate)
A public constructor for TemplateElementImpl.

Parameters:
aTemplate - : the template containing the element.

TemplateElementImpl

protected TemplateElementImpl()
See Also:
Object.Object()
Method Detail

getContainingTemplate

public TemplateDescription getContainingTemplate()
Description copied from interface: TemplateElement
returns the template in which the element is defined.

Specified by:
getContainingTemplate in interface TemplateElement
Returns:
Template
See Also:
org.objectweb.kilim.description.TemplateElement#getTemplate()

getTemplateDefHierarchy

public java.util.Iterator getTemplateDefHierarchy()
Description copied from interface: TemplateElement
returns as an iterator all templates in which an element has been defined and overloaded.

Specified by:
getTemplateDefHierarchy in interface TemplateElement
Returns:
Iterator
See Also:
TemplateElement.getTemplateDefHierarchy()

setContainingTemplate

public void setContainingTemplate(TemplateDescription aDescription)
                           throws KilimException
Description copied from interface: TemplateElement
sets the template in which the element is defined.

Specified by:
setContainingTemplate in interface TemplateElement
Parameters:
aDescription - : the template.
Throws:
KilimException - :
See Also:
TemplateElement.setContainingTemplate(TemplateDescription)

clone

public java.lang.Object clone()
Description copied from interface: TemplateElement
clones a template

Specified by:
clone in interface TemplateElement
See Also:
Object.clone()