KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > mockobjects > visualage > MockMethodBuilder


1 package com.mockobjects.visualage;
2 import com.ibm.ivj.util.base.*;
3 import com.ibm.ivj.util.builders.*;
4 import junit.framework.*;
5 import java.util.*;public class MockMethodBuilder implements MethodBuilder {
6     private SourceVerifier mySourceVerifier;
7     private String JavaDoc myBuilderName;
8     String JavaDoc myExistingSource;
9
10
11
12     public MockMethodBuilder(SourceVerifier verfier, String JavaDoc builderName) {
13         super();
14
15         mySourceVerifier = verfier;
16         myBuilderName = builderName;
17     }
18
19
20
21     public MockMethodBuilder(String JavaDoc source) {
22         myExistingSource = source;
23     }
24
25
26
27     /**
28      * addMethodBuilder method comment.
29      */

30     public void addMethodBuilder(MethodBuilder arg1) {}
31
32
33
34     /**
35      * checkMethodExists method comment.
36      */

37     public boolean checkMethodExists(MethodBuilder arg1) throws IvjException {
38         return false;
39     }
40
41
42
43     /**
44      * getBuilderName method comment.
45      */

46     public String JavaDoc getBuilderName() {
47         return myBuilderName;
48     }
49
50
51
52     /**
53      * getExistingMethods method comment.
54      */

55     public com.ibm.ivj.util.builders.MethodBuilder[] getExistingMethods() throws IvjException {
56         return null;
57     }
58
59
60
61     /**
62      * getExistingMethodSource method comment.
63      */

64     public String JavaDoc getExistingMethodSource(MethodBuilder builder) throws IvjException {
65         return ((MockMethodBuilder)builder).myExistingSource;
66     }
67
68
69
70     /**
71      * getExistingSource method comment.
72      */

73     public String JavaDoc getExistingSource() throws IvjException {
74         return null;
75     }
76
77
78
79     /**
80      * getMethodBuilders method comment.
81      */

82     public java.util.Enumeration JavaDoc getMethodBuilders() {
83         return null;
84     }
85
86
87
88     /**
89      * getSource method comment.
90      */

91     public String JavaDoc getSource() {
92         return null;
93     }
94
95
96
97     /**
98      * isMarkedForDeletion method comment.
99      */

100     public boolean isMarkedForDeletion() {
101         return false;
102     }
103
104
105
106     /**
107      * markForDeletion method comment.
108      */

109     public void markForDeletion(boolean arg1) {}
110
111
112
113     /**
114      * removeAllMethodBuilders method comment.
115      */

116     public void removeAllMethodBuilders() {}
117
118
119
120     /**
121      * removeMethodBuilder method comment.
122      */

123     public void removeMethodBuilder(MethodBuilder arg1) {}
124
125
126
127     /**
128      * saveMerge method comment.
129      */

130     public void saveMerge() throws IvjException {}
131
132
133
134     /**
135      * setSource method comment.
136      */

137     public void setSource(String JavaDoc source) {
138         mySourceVerifier.setSource(myBuilderName,source);
139     }
140 }
Popular Tags