1 23 package com.sun.enterprise.tools.verifier; 24 25 import java.io.File ; 26 import java.util.List ; 27 28 import com.sun.enterprise.deployment.Application; 29 import com.sun.enterprise.deployment.deploy.shared.AbstractArchive; 30 import com.sun.enterprise.server.Constants; 31 import com.sun.enterprise.tools.verifier.util.VerifierConstants; 32 33 40 public class FrameworkContext { 41 42 private boolean app = false; 43 private boolean appClient = false; 44 private boolean connector = false; 45 private boolean ejb = false; 46 private boolean web = false; 47 private boolean webServices = false; 48 private boolean webServicesClient = false; 49 private boolean persistenceUnits = false; 51 private boolean partition = false; 52 private int reportLevel = VerifierConstants.WARN; 53 private boolean useTimeStamp = false; 54 private boolean usingGui = false; 55 private boolean isBackend = false; 56 private String jarFileName = null; 57 private String outputDirName = null; 58 private String explodedArchivePath = null; 59 private ResultManager resultManager = null; 60 private AbstractArchive abstractArchive = null; 61 private boolean isPortabilityMode = false; 62 private String domainDir = System.getProperty("com.sun.aas.installRoot")+ 63 File.separator+"domains"+ File.separator+"domain1"; private String extDir = null; 66 private List <String > classPath = null; 67 private Application application = null; 68 private File jspOutDir = null; 69 70 private String configDirStr = System.getProperty(Constants.INSTALL_ROOT) + 71 File.separator + 72 "lib" + File.separator + 74 "verifier"; 76 private String javaEEVersion = SpecVersionMapper.JavaEEVersion_5; 77 78 82 public boolean isApp() { 83 return app; 84 } 85 86 91 public boolean isAppClient() { 92 return appClient; 93 } 94 95 100 public boolean isConnector() { 101 return connector; 102 } 103 104 109 public boolean isEjb() { 110 return ejb; 111 } 112 113 118 public boolean isWeb() { 119 return web; 120 } 121 122 127 public boolean isWebServices() { 128 return webServices; 129 } 130 131 136 public boolean isWebServicesClient() { 137 return webServicesClient; 138 } 139 140 public boolean isPersistenceUnits() { 141 return persistenceUnits; 142 } 143 144 148 public boolean isPartition() { 149 return partition; 150 } 151 152 157 public void setApp(boolean app) { 158 this.app = app; 159 } 160 161 166 public void setAppClient(boolean appClient) { 167 this.appClient = appClient; 168 } 169 170 175 public void setConnector(boolean connector) { 176 this.connector = connector; 177 } 178 179 184 public void setEjb(boolean ejb) { 185 this.ejb = ejb; 186 } 187 188 193 public void setWeb(boolean web) { 194 this.web = web; 195 } 196 197 202 public void setWebServices(boolean webServices) { 203 this.webServices = webServices; 204 } 205 206 211 public void setWebServicesClient(boolean webServicesClient) { 212 this.webServicesClient = webServicesClient; 213 } 214 215 220 public void setPersistenceUnits(boolean persistenceUnits) { 221 this.persistenceUnits = persistenceUnits; 222 } 223 224 229 public void setPartition(boolean partition) { 230 this.partition = partition; 231 } 232 233 237 public int getReportLevel() { 238 return reportLevel; 239 } 240 241 245 public void setReportLevel(int reportLevel) { 246 this.reportLevel = reportLevel; 247 } 248 249 253 public boolean isUseTimeStamp() { 254 return useTimeStamp; 255 } 256 257 261 public void setUseTimeStamp(boolean useTimeStamp) { 262 this.useTimeStamp = useTimeStamp; 263 } 264 265 269 public String getJarFileName() { 270 return jarFileName; 271 } 272 273 277 public void setJarFileName(String jarFileName) { 278 this.jarFileName = jarFileName; 279 } 280 281 284 public String getOutputDirName() { 285 return outputDirName; 286 } 287 288 292 public void setOutputDirName(String outputDirName) { 293 this.outputDirName = outputDirName; 294 } 295 296 301 public String getConfigDirStr() { 302 return configDirStr; 303 } 304 305 306 310 public void setConfigDirStr(String configDirStr) { 311 this.configDirStr = configDirStr; 312 } 313 314 318 public String getExplodedArchivePath() { 319 return explodedArchivePath; 320 } 321 322 326 public boolean isUsingGui() { 327 return usingGui; 328 } 329 330 333 public void setUsingGui(boolean usingGui) { 334 this.usingGui = usingGui; 335 } 336 337 public boolean isBackend() { 338 return isBackend; 339 } 340 341 public void setIsBackend(boolean b) { 342 this.isBackend = b; 343 } 344 345 349 public void setExplodedArchivePath(String explodedArchivePath) { 350 this.explodedArchivePath = explodedArchivePath; 351 } 352 353 public AbstractArchive getAbstractArchive() { 354 return abstractArchive; 355 } 356 357 public void setAbstractArchive(AbstractArchive abstractArchive) { 358 this.abstractArchive = abstractArchive; 359 } 360 361 public ResultManager getResultManager() { 362 return resultManager; 363 } 364 365 public void setResultManager(ResultManager resultManager) { 366 this.resultManager = resultManager; 367 } 368 369 public boolean isPortabilityMode() { 370 return isPortabilityMode; 371 } 372 373 public void setPortabilityMode(boolean portabilityMode) { 374 isPortabilityMode = portabilityMode; 375 } 376 377 public String getDomainDir() { 378 return domainDir; 379 } 380 381 public void setDomainDir(String domainDir) { 382 this.domainDir = domainDir; 383 } 384 385 public String getExtDir() { 386 return extDir; 387 } 388 389 public void setExtDir(String extDir) { 390 this.extDir = extDir; 391 } 392 393 public List <String > getClassPath() { 394 return classPath; 395 } 396 397 public void setClassPath(List <String > classPath) { 398 this.classPath = classPath; 399 } 400 401 public Application getApplication() { 402 return application; 403 } 404 405 public void setApplication(Application application) { 406 this.application = application; 407 } 408 409 public File getJspOutDir() { 410 return jspOutDir; 411 } 412 413 public void setJspOutDir(File jspOutDir) { 414 this.jspOutDir = jspOutDir; 415 } 416 417 public String getJavaEEVersion() { 418 return javaEEVersion; 419 } 420 421 public void setJavaEEVersion(String javaEEVersion) { 422 this.javaEEVersion = javaEEVersion; 423 } 424 425 } 426 | Popular Tags |