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 myTypeName; 6 private Package myPkg; 7 private String mySource; 8 9 10 11 public MockType(String name) { 12 super(); 13 myTypeName = name; 14 } 15 16 17 18 21 public void clearToolRepositoryData(String arg1) throws IvjException {} 22 23 24 25 28 public void clearToolWorkspaceData(String arg1) throws IvjException {} 29 30 31 32 35 public void createNewEdition() throws IvjException {} 36 37 38 39 42 public void createVersion(String arg1) throws IvjException {} 43 44 45 46 49 public void createVersion(String arg1, boolean arg2) throws IvjException {} 50 51 52 53 56 public void delete() throws IvjException {} 57 58 59 60 63 public com.ibm.ivj.util.base.TypeEdition[] getAllEditions() throws IvjException { 64 return null; 65 } 66 67 68 69 72 public com.ibm.ivj.util.base.Type[] getAllSubtypes() { 73 return null; 74 } 75 76 77 78 81 public String getDeveloperName() throws IvjException { 82 return null; 83 } 84 85 86 87 90 public TypeEdition getEdition() throws IvjException { 91 return null; 92 } 93 94 95 96 99 public String getName() { 100 return myTypeName; 101 } 102 103 104 105 108 public String getOwnerName() throws IvjException { 109 return null; 110 } 111 112 113 114 117 public com.ibm.ivj.util.base.Package getPackage() throws IvjException { 118 return myPkg; 119 } 120 121 122 123 126 public Project getProject() throws IvjException { 127 return myPkg.getProject(); 128 } 129 130 131 132 135 public String getQualifiedName() { 136 return myPkg.getName()+"."+myTypeName; 137 } 138 139 140 141 144 public ToolData getToolRepositoryData(String arg1) throws java.io.IOException , java.io.StreamCorruptedException , IvjException, ClassNotFoundException , java.io.OptionalDataException { 145 return null; 146 } 147 148 149 150 153 public ToolData getToolWorkspaceData(String arg1) throws java.io.IOException , java.io.StreamCorruptedException , IvjException, ClassNotFoundException , java.io.OptionalDataException { 154 return null; 155 } 156 157 158 159 public String getupSource() { 160 return mySource; 161 } 162 163 164 165 168 public String getVersionName() throws IvjException { 169 return null; 170 } 171 172 173 174 177 public java.util.Date getVersionStamp() throws IvjException { 178 return null; 179 } 180 181 182 183 186 public boolean hasError() { 187 return false; 188 } 189 190 191 192 195 public boolean hasSourceCode() { 196 return false; 197 } 198 199 200 201 204 public boolean isApplet() throws IvjException { 205 return false; 206 } 207 208 209 210 213 public boolean isApplication() throws IvjException { 214 return false; 215 } 216 217 218 219 222 public boolean isClass() throws IvjException { 223 return true; 224 } 225 226 227 228 231 public boolean isEdition() throws IvjException { 232 return true; 233 } 234 235 236 237 240 public boolean isInDefaultPackage() { 241 return (myPkg == null ? true : myPkg.isDefaultPackage()); 242 } 243 244 245 246 249 public boolean isInterface() throws IvjException { 250 return false; 251 } 252 253 254 255 258 public boolean isPackage() { 259 return false; 260 } 261 262 263 264 267 public boolean isProject() { 268 return false; 269 } 270 271 272 273 276 public boolean isReleased() throws IvjException { 277 return false; 278 } 279 280 281 282 285 public boolean isType() { 286 return false; 287 } 288 289 290 291 294 public boolean isVersion() throws IvjException { 295 return false; 296 } 297 298 299 300 303 public void openBrowser() throws IvjException {} 304 305 306 307 310 public void release() throws IvjException {} 311 312 313 314 317 public void setToolRepositoryData(ToolData arg1) throws java.io.IOException , IvjException {} 318 319 320 321 324 public void setToolWorkspaceData(ToolData arg1) throws java.io.IOException , IvjException {} 325 326 327 328 public void setupPackage(Package pkg) { 329 myPkg = pkg; 330 } 331 332 333 334 public void setupSource(String source) { 335 mySource = source; 336 } 337 338 339 340 343 public boolean testToolRepositoryData(String arg1) throws IvjException { 344 return false; 345 } 346 347 348 349 352 public boolean testToolWorkspaceData(String arg1) throws IvjException { 353 return false; 354 } 355 } | Popular Tags |