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 _pkgName; 6 private ArrayList _types = new ArrayList(); 7 private MockWorkspace _workspace; 8 private boolean _isDefaultPackage = false; 9 10 11 12 public MockPackage(String name, MockWorkspace workspace) { 13 super(); 14 _pkgName = name; 15 _workspace = workspace; 16 17 _workspace.addLoadedPackage(this); 18 } 19 20 21 22 25 public void addContainedType(Type aType) { 26 _types.add(aType); 27 _workspace.addLoadedType(aType); 28 } 29 30 31 32 35 public void addContainedType(MockType aType) { 36 _types.add(aType); 37 aType.setupPackage(this); 38 39 _workspace.addLoadedType(aType); 40 } 41 42 43 44 47 public void clearToolRepositoryData(String arg1) throws IvjException {} 48 49 50 51 54 public void clearToolWorkspaceData(String arg1) throws IvjException {} 55 56 57 58 61 public void createNewEdition() throws IvjException {} 62 63 64 65 68 public void createVersion(String arg1) throws IvjException {} 69 70 71 72 75 public void createVersion(String arg1, boolean arg2) throws IvjException {} 76 77 78 79 82 public void delete() throws IvjException {} 83 84 85 86 89 public com.ibm.ivj.util.base.PackageEdition[] getAllEditions() throws IvjException { 90 return null; 91 } 92 93 94 95 98 public String getComment() throws IvjException { 99 return null; 100 } 101 102 103 104 107 public PackageEdition getEdition() throws IvjException { 108 return null; 109 } 110 111 112 113 116 public String getName() { 117 return _pkgName; 118 } 119 120 121 122 125 public String getOwnerName() throws IvjException { 126 return null; 127 } 128 129 130 131 134 public Project getProject() throws IvjException { 135 return null; 136 } 137 138 139 140 143 public ToolData getToolRepositoryData(String arg1) throws java.io.IOException , java.io.StreamCorruptedException , IvjException, ClassNotFoundException , java.io.OptionalDataException { 144 return null; 145 } 146 147 148 149 152 public ToolData getToolWorkspaceData(String arg1) throws java.io.IOException , java.io.StreamCorruptedException , IvjException, ClassNotFoundException , java.io.OptionalDataException { 153 return null; 154 } 155 156 157 158 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 172 public String getVersionName() throws IvjException { 173 return null; 174 } 175 176 177 178 181 public java.util.Date getVersionStamp() throws IvjException { 182 return null; 183 } 184 185 186 187 190 public boolean isDefaultPackage() { 191 return _isDefaultPackage; 192 } 193 194 195 196 199 public boolean isEdition() throws IvjException { 200 return true; 201 } 202 203 204 205 208 public boolean isPackage() { 209 return true; 210 } 211 212 213 214 217 public boolean isProject() { 218 return false; 219 } 220 221 222 223 226 public boolean isReleased() throws IvjException { 227 return false; 228 } 229 230 231 232 235 public boolean isScratchEdition() throws IvjException { 236 return false; 237 } 238 239 240 241 244 public boolean isType() { 245 return false; 246 } 247 248 249 250 253 public boolean isVersion() throws IvjException { 254 return false; 255 } 256 257 258 259 262 public void openBrowser() throws IvjException {} 263 264 265 266 269 public void release() throws IvjException {} 270 271 272 273 276 public void setComment(String arg1) throws IvjException {} 277 278 279 280 283 public void setToolRepositoryData(ToolData arg1) throws java.io.IOException , IvjException {} 284 285 286 287 290 public void setToolWorkspaceData(ToolData arg1) throws java.io.IOException , IvjException {} 291 292 293 294 public void setupIsDefaultPackage() { 295 _isDefaultPackage = true; 296 } 297 298 299 300 303 public boolean testToolRepositoryData(String arg1) throws IvjException { 304 return false; 305 } 306 307 308 309 312 public boolean testToolWorkspaceData(String arg1) throws IvjException { 313 return false; 314 } 315 } | Popular Tags |