KickJava   Java API By Example, From Geeks To Geeks.

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


1 package com.mockobjects.visualage;
2 import com.ibm.ivj.util.base.*;
3 import com.ibm.ivj.util.builders.*;
4 import java.util.*;public class MockPackage implements com.ibm.ivj.util.base.Package {
5     private String JavaDoc _pkgName;
6     private ArrayList _types = new ArrayList();
7     private MockWorkspace _workspace;
8     private boolean _isDefaultPackage = false;
9
10
11
12     public MockPackage(String JavaDoc name, MockWorkspace workspace) {
13         super();
14         _pkgName = name;
15         _workspace = workspace;
16
17         _workspace.addLoadedPackage(this);
18     }
19
20
21
22     /**
23      * Mock Method
24      */

25     public void addContainedType(Type aType) {
26         _types.add(aType);
27         _workspace.addLoadedType(aType);
28     }
29
30
31
32     /**
33      * Mock Method
34      */

35     public void addContainedType(MockType aType) {
36         _types.add(aType);
37         aType.setupPackage(this);
38
39         _workspace.addLoadedType(aType);
40     }
41
42
43
44     /**
45      * clearToolRepositoryData method comment.
46      */

47     public void clearToolRepositoryData(String JavaDoc arg1) throws IvjException {}
48
49
50
51     /**
52      * clearToolWorkspaceData method comment.
53      */

54     public void clearToolWorkspaceData(String JavaDoc arg1) throws IvjException {}
55
56
57
58     /**
59      * createNewEdition method comment.
60      */

61     public void createNewEdition() throws IvjException {}
62
63
64
65     /**
66      * createVersion method comment.
67      */

68     public void createVersion(String JavaDoc arg1) throws IvjException {}
69
70
71
72     /**
73      * createVersion method comment.
74      */

75     public void createVersion(String JavaDoc arg1, boolean arg2) throws IvjException {}
76
77
78
79     /**
80      * delete method comment.
81      */

82     public void delete() throws IvjException {}
83
84
85
86     /**
87      * getAllEditions method comment.
88      */

89     public com.ibm.ivj.util.base.PackageEdition[] getAllEditions() throws IvjException {
90         return null;
91     }
92
93
94
95     /**
96      * getComment method comment.
97      */

98     public String JavaDoc getComment() throws IvjException {
99         return null;
100     }
101
102
103
104     /**
105      * getEdition method comment.
106      */

107     public PackageEdition getEdition() throws IvjException {
108         return null;
109     }
110
111
112
113     /**
114      * getName method comment.
115      */

116     public String JavaDoc getName() {
117         return _pkgName;
118     }
119
120
121
122     /**
123      * getOwnerName method comment.
124      */

125     public String JavaDoc getOwnerName() throws IvjException {
126         return null;
127     }
128
129
130
131     /**
132      * getProject method comment.
133      */

134     public Project getProject() throws IvjException {
135         return null;
136     }
137
138
139
140     /**
141      * getToolRepositoryData method comment.
142      */

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

152     public ToolData getToolWorkspaceData(String JavaDoc arg1) throws java.io.IOException JavaDoc, java.io.StreamCorruptedException JavaDoc, IvjException, ClassNotFoundException JavaDoc, java.io.OptionalDataException JavaDoc {
153         return null;
154     }
155
156
157
158     /**
159      * getTypes method comment.
160      */

161     public com.ibm.ivj.util.base.Type[] getTypes() throws IvjException {
162         Type[] result = new Type[_types.size()];
163         _types.toArray(result);
164         return result;
165     }
166
167
168
169     /**
170      * getVersionName method comment.
171      */

172     public String JavaDoc getVersionName() throws IvjException {
173         return null;
174     }
175
176
177
178     /**
179      * getVersionStamp method comment.
180      */

181     public java.util.Date JavaDoc getVersionStamp() throws IvjException {
182         return null;
183     }
184
185
186
187     /**
188      * isDefaultPackage method comment.
189      */

190     public boolean isDefaultPackage() {
191         return _isDefaultPackage;
192     }
193
194
195
196     /**
197      * isEdition method comment.
198      */

199     public boolean isEdition() throws IvjException {
200         return true;
201     }
202
203
204
205     /**
206      * isPackage method comment.
207      */

208     public boolean isPackage() {
209         return true;
210     }
211
212
213
214     /**
215      * isProject method comment.
216      */

217     public boolean isProject() {
218         return false;
219     }
220
221
222
223     /**
224      * isReleased method comment.
225      */

226     public boolean isReleased() throws IvjException {
227         return false;
228     }
229
230
231
232     /**
233      * isScratchEdition method comment.
234      */

235     public boolean isScratchEdition() throws IvjException {
236         return false;
237     }
238
239
240
241     /**
242      * isType method comment.
243      */

244     public boolean isType() {
245         return false;
246     }
247
248
249
250     /**
251      * isVersion method comment.
252      */

253     public boolean isVersion() throws IvjException {
254         return false;
255     }
256
257
258
259     /**
260      * openBrowser method comment.
261      */

262     public void openBrowser() throws IvjException {}
263
264
265
266     /**
267      * release method comment.
268      */

269     public void release() throws IvjException {}
270
271
272
273     /**
274      * setComment method comment.
275      */

276     public void setComment(String JavaDoc arg1) throws IvjException {}
277
278
279
280     /**
281      * setToolRepositoryData method comment.
282      */

283     public void setToolRepositoryData(ToolData arg1) throws java.io.IOException JavaDoc, IvjException {}
284
285
286
287     /**
288      * setToolWorkspaceData method comment.
289      */

290     public void setToolWorkspaceData(ToolData arg1) throws java.io.IOException JavaDoc, IvjException {}
291
292
293
294     public void setupIsDefaultPackage() {
295         _isDefaultPackage = true;
296     }
297
298
299
300     /**
301      * testToolRepositoryData method comment.
302      */

303     public boolean testToolRepositoryData(String JavaDoc arg1) throws IvjException {
304         return false;
305     }
306
307
308
309     /**
310      * testToolWorkspaceData method comment.
311      */

312     public boolean testToolWorkspaceData(String JavaDoc arg1) throws IvjException {
313         return false;
314     }
315 }
Popular Tags