KickJava   Java API By Example, From Geeks To Geeks.

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


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 class Parameter {
25     private String JavaDoc name;
26     private String JavaDoc typeName;
27     private BasicElement target;
28
29     /**
30      * Method ParameterImpl.
31      * @param aName : the name of the parameter
32      * @param aTypeName : the type of the parameter
33      * @param aTarget : the value of the parameter
34      */

35     public Parameter(String JavaDoc aName, String JavaDoc aTypeName, BasicElement aTarget) {
36         name = aName;
37         typeName = aTypeName;
38         target = aTarget;
39     }
40     
41     /**
42      * @see org.objectweb.kilim.description.Parameter#getName()
43      */

44     public String JavaDoc getName() {
45         return name;
46     }
47         
48     /**
49      * @see org.objectweb.kilim.description.Parameter#getTypeName()
50      */

51     public String JavaDoc getTypeName() {
52         return typeName;
53     }
54     
55     /**
56      * @see org.objectweb.kilim.description.Parameter#getTypeName()
57      */

58     public void setTypeName(String JavaDoc aTypeName) {
59         typeName = aTypeName;
60     }
61     
62     /**
63      * @see org.objectweb.kilim.description.Parameter#getTarget()
64      */

65     public BasicElement getTarget() {
66         return target;
67     }
68     
69     /**
70      * @see org.objectweb.kilim.description.Parameter#setTarget(BasicElement)
71      */

72     public void setTarget(BasicElement aTarget) {
73         target = aTarget;
74     }
75     
76     /**
77      * Method isEventSource.
78      * @return boolean
79      */

80     public boolean isEventSource() {
81         return false;
82     }
83 }
Popular Tags