KickJava   Java API By Example, From Geeks To Geeks.

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


1 package com.mockobjects.vaj;
2
3 import com.ibm.ivj.util.base.*;
4 import com.ibm.ivj.util.builders.*;
5 import java.util.*;
6 import com.mockobjects.*;
7
8 public class MockPackage extends MockObject implements com.ibm.ivj.util.base.Package {
9     private String JavaDoc _pkgName;
10     private ArrayList _types = new ArrayList();
11     private MockWorkspace _workspace;
12     private Project _project;
13
14     public MockPackage(String JavaDoc name, MockWorkspace workspace) {
15         super();
16         _pkgName = name;
17         _workspace = workspace;
18
19         _workspace.setupAddPackage(this);
20     }
21
22     /**
23      * @deprectated use setupAddContainedType
24      */

25     public void addContainedType(Type aType) {
26         setupAddType(aType);
27     }
28
29     /**
30      * @deprecated
31      */

32     public void addContainedType(MockType aType) {
33         setupAddType(aType);
34     }
35
36     /**
37      * clearToolRepositoryData method comment.
38      */

39     public void clearToolRepositoryData(String JavaDoc arg1) throws IvjException {}
40
41     /**
42      * clearToolWorkspaceData method comment.
43      */

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

49     public void createNewEdition() throws IvjException {}
50
51     /**
52      * createVersion method comment.
53      */

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

59     public void createVersion(String JavaDoc arg1, boolean arg2) throws IvjException {}
60
61     /**
62      * delete method comment.
63      */

64     public void delete() throws IvjException {}
65
66     /**
67      * getAllEditions method comment.
68      */

69     public com.ibm.ivj.util.base.PackageEdition[] getAllEditions() throws IvjException {
70         return null;
71     }
72
73     /**
74      * getComment method comment.
75      */

76     public String JavaDoc getComment() throws IvjException {
77         return null;
78     }
79
80     /**
81      * getEdition method comment.
82      */

83     public PackageEdition getEdition() throws IvjException {
84         return null;
85     }
86
87     /**
88      * getName method comment.
89      */

90     public String JavaDoc getName() {
91         return _pkgName;
92     }
93
94     /**
95      * getOwnerName method comment.
96      */

97     public String JavaDoc getOwnerName() throws IvjException {
98         return null;
99     }
100
101     public Project getProject() throws IvjException {
102         return _project;
103     }
104
105     /**
106      * getToolRepositoryData method comment.
107      */

108     public ToolData getToolRepositoryData(String JavaDoc arg1) throws java.io.IOException JavaDoc, java.io.StreamCorruptedException JavaDoc, IvjException, ClassNotFoundException JavaDoc, java.io.OptionalDataException JavaDoc {
109         return null;
110     }
111
112     /**
113      * getToolWorkspaceData method comment.
114      */

115     public ToolData getToolWorkspaceData(String JavaDoc arg1) throws java.io.IOException JavaDoc, java.io.StreamCorruptedException JavaDoc, IvjException, ClassNotFoundException JavaDoc, java.io.OptionalDataException JavaDoc {
116         return null;
117     }
118
119     /**
120      * getTypes method comment.
121      */

122     public com.ibm.ivj.util.base.Type[] getTypes() throws IvjException {
123         Type[] result = new Type[_types.size()];
124         _types.toArray(result);
125         return result;
126     }
127
128     /**
129      * getVersionName method comment.
130      */

131     public String JavaDoc getVersionName() throws IvjException {
132         return null;
133     }
134
135     /**
136      * getVersionStamp method comment.
137      */

138     public java.util.Date JavaDoc getVersionStamp() throws IvjException {
139         return null;
140     }
141
142     /**
143      * isDefaultPackage method comment.
144      */

145     public boolean isDefaultPackage() {
146         return false;
147     }
148
149     /**
150      * isEdition method comment.
151      */

152     public boolean isEdition() throws IvjException {
153         return true;
154     }
155
156     /**
157      * isPackage method comment.
158      */

159     public boolean isPackage() {
160         return true;
161     }
162
163     /**
164      * isProject method comment.
165      */

166     public boolean isProject() {
167         return false;
168     }
169
170     /**
171      * isReleased method comment.
172      */

173     public boolean isReleased() throws IvjException {
174         return false;
175     }
176
177     /**
178      * isScratchEdition method comment.
179      */

180     public boolean isScratchEdition() throws IvjException {
181         return false;
182     }
183
184     /**
185      * isType method comment.
186      */

187     public boolean isType() {
188         return false;
189     }
190
191     /**
192      * isVersion method comment.
193      */

194     public boolean isVersion() throws IvjException {
195         return false;
196     }
197
198     /**
199      * openBrowser method comment.
200      */

201     public void openBrowser() throws IvjException {}
202
203     /**
204      * release method comment.
205      */

206     public void release() throws IvjException {}
207
208     /**
209      * setComment method comment.
210      */

211     public void setComment(String JavaDoc arg1) throws IvjException {}
212
213     /** @deprecated */
214
215     public void setProject(Project project) {
216         _project = project;
217     }
218
219     /**
220      * setToolRepositoryData method comment.
221      */

222     public void setToolRepositoryData(ToolData arg1) throws java.io.IOException JavaDoc, IvjException {}
223
224     /**
225      * setToolWorkspaceData method comment.
226      */

227     public void setToolWorkspaceData(ToolData arg1) throws java.io.IOException JavaDoc, IvjException {}
228
229     public void setupAddType(Type aType) {
230         _types.add(aType);
231         _workspace.setupAddType(aType);
232     }
233
234     public void setupAddType(MockType aType) {
235         setupAddType((Type)aType);
236
237         aType.setPackage(this);
238     }
239
240     public MockType setupNewType(String JavaDoc name) {
241         MockType aType = new MockType(name);
242
243         setupAddType(aType);
244
245         return aType;
246     }
247
248     public void setupProject(Project project) {
249         _project = project;
250     }
251
252     /**
253      * testToolRepositoryData method comment.
254      */

255     public boolean testToolRepositoryData(String JavaDoc arg1) throws IvjException {
256         return false;
257     }
258
259     /**
260      * testToolWorkspaceData method comment.
261      */

262     public boolean testToolWorkspaceData(String JavaDoc arg1) throws IvjException {
263         return false;
264     }
265
266     /**
267      * verify method comment.
268      */

269     public void verify() {}
270 }
271
Popular Tags