KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * Copyright (C) 2002 Kelua SA
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  */

18
19 package org.objectweb.kilim.description;
20
21 /**
22  * @author horn
23  */

24 public interface BasicElement extends TemplateElement {
25     
26     /**
27      * Basic elements either provide values or exceute actions that complete the instatiation process This method. indicates whether
28      * the element returns a value in the Kilim model. The result is true for providers, ports, properties, inlined getters inlined news, constructors,
29      * methods which do not return void. It also return true for references to the elements previously defined (i.e. ports, properties, .).
30      * @return boolean
31      */

32     boolean providesValue();
33     
34     /**
35      * Basic elements either provide values or exceute actions that complete the instatiation process This method. indicates whether
36      * the element performs an action and can therefore been used in a trigger. The result is true for transformers, inlined setter, inlined news, methods,
37      * and constructors. It also return true for references to the elements previously defined (setters, methods, ...).
38      * @return boolean
39      */

40     boolean performsAction();
41         
42     /**
43      * indicates whether the element is an event source or not.
44      * @return boolean
45      */

46     boolean isEventSource();
47     
48     
49     /**
50      * returns the element kind.
51      * @return int
52      */

53     int getKind();
54 }
55
Popular Tags