KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.objectweb.kilim.description;
2
3 import org.objectweb.kilim.KilimException;
4
5 /**
6  * @author horn
7  */

8 public class TpSetter extends TpAccessor {
9     private BasicElement value;
10
11     /**
12      * The public constructor for a setter description.
13      * @param aSupport : the element on which the setter will b e applied.
14      * @param aField : the name of the field.
15      * @param jStatic : true if the setter is static.
16      * @param aTemplate : the template in which the setter is declared.
17      * @throws KilimException : generated if a Support, aField or aTemplate is null.
18      */

19     public TpSetter(BasicElement aSupport, String JavaDoc aField, boolean jStatic, TemplateDescription aTemplate) throws KilimException {
20         super(aSupport, aField, jStatic, false, true, aTemplate);
21     }
22     
23     /**
24      * sets the value associated to the setter.
25      * @param aValue : the value to be set.
26      */

27     public void setValue(BasicElement aValue) {
28         value = aValue;
29     }
30     
31     /**
32      * returns the value associated to the setter.
33      * @return BasicElement
34      */

35     public BasicElement getValue() {
36         return value;
37     }
38     
39     /**
40      * @see org.objectweb.kilim.description.BasicElement#getKind()
41      */

42     public int getKind() {
43         return KILIM.SETTER;
44     }
45 }
Popular Tags