KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > impl > staticfeatures > ClassDClassImpl


1 /*
2  * Sun Public License Notice
3  *
4  * The contents of this file are subject to the Sun Public License
5  * Version 1.0 (the "License"). You may not use this file except in
6  * compliance with the License. A copy of the License is available at
7  * http://www.sun.com/
8  *
9  * The Original Code is NetBeans. The Initial Developer of the Original
10  * Code is Sun Microsystems, Inc. Portions Copyright 1997-2001 Sun
11  * Microsystems, Inc. All Rights Reserved.
12  */

13 package impl.staticfeatures;
14
15 import javax.jmi.model.*;
16 import javax.jmi.reflect.*;
17
18 import staticfeatures.*;
19 import org.netbeans.mdr.handlers.ClassProxyHandler;
20 import org.netbeans.mdr.storagemodel.StorableClass;
21
22 public abstract class ClassDClassImpl extends ClassProxyHandler implements ClassCClass {
23     
24     protected ClassDClassImpl(StorableClass storable) {
25         super(storable);
26     }
27
28     /*
29     public int getStaticFieldA () {
30         return fieldA;
31     }
32     
33     public int getStaticFieldB () {
34         return fieldB;
35     }
36     
37     public int getStaticFieldC () {
38         return fieldC;
39     }
40     
41     public int getStaticFieldD () {
42         return fieldD;
43     }
44     
45     public void setStaticFieldA (int value) {
46         fieldA = value;
47     }
48     
49     public void setStaticFieldB (int value) {
50         fieldB = value;
51     }
52     
53     public void setStaticFieldC (int value) {
54         fieldC = value;
55     }
56     
57     public void setStaticFieldD (int value) {
58         fieldD = value;
59     }
60      */

61     
62     public ClassA returnParam (ClassA param) {
63         return param;
64     }
65     
66     public int compute (ClassD param) {
67         return 333;
68     }
69     
70     public int getStaticDerivedField () {
71         return 123;
72     }
73     
74 }
Popular Tags