KickJava   Java API By Example, From Geeks To Geeks.

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


1 package com.mockobjects.visualage;
2 import com.ibm.ivj.util.base.*;
3 import com.ibm.ivj.util.builders.*;
4 import com.ibm.ivj.util.base.Package;public class MockType implements Type {
5     private String JavaDoc myTypeName;
6     private Package JavaDoc myPkg;
7     private String JavaDoc mySource;
8
9
10
11     public MockType(String JavaDoc name) {
12         super();
13         myTypeName = name;
14     }
15
16
17
18     /**
19      * clearToolRepositoryData method comment.
20      */

21     public void clearToolRepositoryData(String JavaDoc arg1) throws IvjException {}
22
23
24
25     /**
26      * clearToolWorkspaceData method comment.
27      */

28     public void clearToolWorkspaceData(String JavaDoc arg1) throws IvjException {}
29
30
31
32     /**
33      * createNewEdition method comment.
34      */

35     public void createNewEdition() throws IvjException {}
36
37
38
39     /**
40      * createVersion method comment.
41      */

42     public void createVersion(String JavaDoc arg1) throws IvjException {}
43
44
45
46     /**
47      * createVersion method comment.
48      */

49     public void createVersion(String JavaDoc arg1, boolean arg2) throws IvjException {}
50
51
52
53     /**
54      * delete method comment.
55      */

56     public void delete() throws IvjException {}
57
58
59
60     /**
61      * getAllEditions method comment.
62      */

63     public com.ibm.ivj.util.base.TypeEdition[] getAllEditions() throws IvjException {
64         return null;
65     }
66
67
68
69     /**
70      * getAllSubtypes method comment.
71      */

72     public com.ibm.ivj.util.base.Type[] getAllSubtypes() {
73         return null;
74     }
75
76
77
78     /**
79      * getDeveloperName method comment.
80      */

81     public String JavaDoc getDeveloperName() throws IvjException {
82         return null;
83     }
84
85
86
87     /**
88      * getEdition method comment.
89      */

90     public TypeEdition getEdition() throws IvjException {
91         return null;
92     }
93
94
95
96     /**
97      * getName method comment.
98      */

99     public String JavaDoc getName() {
100         return myTypeName;
101     }
102
103
104
105     /**
106      * getOwnerName method comment.
107      */

108     public String JavaDoc getOwnerName() throws IvjException {
109         return null;
110     }
111
112
113
114     /**
115      * getPackage method comment.
116      */

117     public com.ibm.ivj.util.base.Package getPackage() throws IvjException {
118         return myPkg;
119     }
120
121
122
123     /**
124      * getProject method comment.
125      */

126     public Project getProject() throws IvjException {
127         return myPkg.getProject();
128     }
129
130
131
132     /**
133      * getQualifiedName method comment.
134      */

135     public String JavaDoc getQualifiedName() {
136         return myPkg.getName()+"."+myTypeName;
137     }
138
139
140
141     /**
142      * getToolRepositoryData method comment.
143      */

144     public ToolData getToolRepositoryData(String JavaDoc arg1) throws java.io.IOException JavaDoc, java.io.StreamCorruptedException JavaDoc, IvjException, ClassNotFoundException JavaDoc, java.io.OptionalDataException JavaDoc {
145         return null;
146     }
147
148
149
150     /**
151      * getToolWorkspaceData method comment.
152      */

153     public ToolData getToolWorkspaceData(String JavaDoc arg1) throws java.io.IOException JavaDoc, java.io.StreamCorruptedException JavaDoc, IvjException, ClassNotFoundException JavaDoc, java.io.OptionalDataException JavaDoc {
154         return null;
155     }
156
157
158
159     public String JavaDoc getupSource() {
160         return mySource;
161     }
162
163
164
165     /**
166      * getVersionName method comment.
167      */

168     public String JavaDoc getVersionName() throws IvjException {
169         return null;
170     }
171
172
173
174     /**
175      * getVersionStamp method comment.
176      */

177     public java.util.Date JavaDoc getVersionStamp() throws IvjException {
178         return null;
179     }
180
181
182
183     /**
184      * hasError method comment.
185      */

186     public boolean hasError() {
187         return false;
188     }
189
190
191
192     /**
193      * hasSourceCode method comment.
194      */

195     public boolean hasSourceCode() {
196         return false;
197     }
198
199
200
201     /**
202      * isApplet method comment.
203      */

204     public boolean isApplet() throws IvjException {
205         return false;
206     }
207
208
209
210     /**
211      * isApplication method comment.
212      */

213     public boolean isApplication() throws IvjException {
214         return false;
215     }
216
217
218
219     /**
220      * isClass method comment.
221      */

222     public boolean isClass() throws IvjException {
223         return true;
224     }
225
226
227
228     /**
229      * isEdition method comment.
230      */

231     public boolean isEdition() throws IvjException {
232         return true;
233     }
234
235
236
237     /**
238      * isInDefaultPackage method comment.
239      */

240     public boolean isInDefaultPackage() {
241         return (myPkg == null ? true : myPkg.isDefaultPackage());
242     }
243
244
245
246     /**
247      * isInterface method comment.
248      */

249     public boolean isInterface() throws IvjException {
250         return false;
251     }
252
253
254
255     /**
256      * isPackage method comment.
257      */

258     public boolean isPackage() {
259         return false;
260     }
261
262
263
264     /**
265      * isProject method comment.
266      */

267     public boolean isProject() {
268         return false;
269     }
270
271
272
273     /**
274      * isReleased method comment.
275      */

276     public boolean isReleased() throws IvjException {
277         return false;
278     }
279
280
281
282     /**
283      * isType method comment.
284      */

285     public boolean isType() {
286         return false;
287     }
288
289
290
291     /**
292      * isVersion method comment.
293      */

294     public boolean isVersion() throws IvjException {
295         return false;
296     }
297
298
299
300     /**
301      * openBrowser method comment.
302      */

303     public void openBrowser() throws IvjException {}
304
305
306
307     /**
308      * release method comment.
309      */

310     public void release() throws IvjException {}
311
312
313
314     /**
315      * setToolRepositoryData method comment.
316      */

317     public void setToolRepositoryData(ToolData arg1) throws java.io.IOException JavaDoc, IvjException {}
318
319
320
321     /**
322      * setToolWorkspaceData method comment.
323      */

324     public void setToolWorkspaceData(ToolData arg1) throws java.io.IOException JavaDoc, IvjException {}
325
326
327
328     public void setupPackage(Package JavaDoc pkg) {
329         myPkg = pkg;
330     }
331
332
333
334     public void setupSource(String JavaDoc source) {
335         mySource = source;
336     }
337
338
339
340     /**
341      * testToolRepositoryData method comment.
342      */

343     public boolean testToolRepositoryData(String JavaDoc arg1) throws IvjException {
344         return false;
345     }
346
347
348
349     /**
350      * testToolWorkspaceData method comment.
351      */

352     public boolean testToolWorkspaceData(String JavaDoc arg1) throws IvjException {
353         return false;
354     }
355 }
Popular Tags