KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > kilim > description > TemplateElement


1 package org.objectweb.kilim.description;
2
3 import java.util.Iterator JavaDoc;
4
5 import org.objectweb.kilim.KilimException;
6
7 /**
8  * @author horn
9  * This is the parent interface for all interfaces and classes corresponding to template elements
10  */

11 public interface TemplateElement extends Cloneable JavaDoc {
12     
13     /**
14      * returns the template in which the element is defined.
15      * @return Template
16      */

17     TemplateDescription getContainingTemplate();
18     
19     /**
20      * sets the template in which the element is defined.
21      * @param aTemplate : the template.
22      * @throws KilimException :
23      */

24     void setContainingTemplate(TemplateDescription aTemplate) throws KilimException;
25     
26     /**
27      * clones a template
28      * @return Object
29      */

30     Object JavaDoc clone();
31     
32     /**
33      * returns as an iterator all templates in which an element has been defined and overloaded.
34      * @return Iterator
35      */

36     Iterator JavaDoc getTemplateDefHierarchy();
37 }
38
Popular Tags