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 _pkgName; 10 private ArrayList _types = new ArrayList(); 11 private MockWorkspace _workspace; 12 private Project _project; 13 14 public MockPackage(String name, MockWorkspace workspace) { 15 super(); 16 _pkgName = name; 17 _workspace = workspace; 18 19 _workspace.setupAddPackage(this); 20 } 21 22 25 public void addContainedType(Type aType) { 26 setupAddType(aType); 27 } 28 29 32 public void addContainedType(MockType aType) { 33 setupAddType(aType); 34 } 35 36 39 public void clearToolRepositoryData(String arg1) throws IvjException {} 40 41 44 public void clearToolWorkspaceData(String arg1) throws IvjException {} 45 46 49 public void createNewEdition() throws IvjException {} 50 51 54 public void createVersion(String arg1) throws IvjException {} 55 56 59 public void createVersion(String arg1, boolean arg2) throws IvjException {} 60 61 64 public void delete() throws IvjException {} 65 66 69 public com.ibm.ivj.util.base.PackageEdition[] getAllEditions() throws IvjException { 70 return null; 71 } 72 73 76 public String getComment() throws IvjException { 77 return null; 78 } 79 80 83 public PackageEdition getEdition() throws IvjException { 84 return null; 85 } 86 87 90 public String getName() { 91 return _pkgName; 92 } 93 94 97 public String getOwnerName() throws IvjException { 98 return null; 99 } 100 101 public Project getProject() throws IvjException { 102 return _project; 103 } 104 105 108 public ToolData getToolRepositoryData(String arg1) throws java.io.IOException , java.io.StreamCorruptedException , IvjException, ClassNotFoundException , java.io.OptionalDataException { 109 return null; 110 } 111 112 115 public ToolData getToolWorkspaceData(String arg1) throws java.io.IOException , java.io.StreamCorruptedException , IvjException, ClassNotFoundException , java.io.OptionalDataException { 116 return null; 117 } 118 119 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 131 public String getVersionName() throws IvjException { 132 return null; 133 } 134 135 138 public java.util.Date getVersionStamp() throws IvjException { 139 return null; 140 } 141 142 145 public boolean isDefaultPackage() { 146 return false; 147 } 148 149 152 public boolean isEdition() throws IvjException { 153 return true; 154 } 155 156 159 public boolean isPackage() { 160 return true; 161 } 162 163 166 public boolean isProject() { 167 return false; 168 } 169 170 173 public boolean isReleased() throws IvjException { 174 return false; 175 } 176 177 180 public boolean isScratchEdition() throws IvjException { 181 return false; 182 } 183 184 187 public boolean isType() { 188 return false; 189 } 190 191 194 public boolean isVersion() throws IvjException { 195 return false; 196 } 197 198 201 public void openBrowser() throws IvjException {} 202 203 206 public void release() throws IvjException {} 207 208 211 public void setComment(String arg1) throws IvjException {} 212 213 214 215 public void setProject(Project project) { 216 _project = project; 217 } 218 219 222 public void setToolRepositoryData(ToolData arg1) throws java.io.IOException , IvjException {} 223 224 227 public void setToolWorkspaceData(ToolData arg1) throws java.io.IOException , 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 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 255 public boolean testToolRepositoryData(String arg1) throws IvjException { 256 return false; 257 } 258 259 262 public boolean testToolWorkspaceData(String arg1) throws IvjException { 263 return false; 264 } 265 266 269 public void verify() {} 270 } 271 | Popular Tags |