FileDocCategorySizeDatePackage
FrameworkContext.javaAPI DocGlassfish v2 API12036Fri May 04 22:33:24 BST 2007com.sun.enterprise.tools.verifier

FrameworkContext

public class FrameworkContext extends Object
This is a data class that contains all the argument specific stuff and the temporary variables. It is used during the verification process and during the report generation.
author
Vikas Awasthi

Fields Summary
private boolean
app
private boolean
appClient
private boolean
connector
private boolean
ejb
private boolean
web
private boolean
webServices
private boolean
webServicesClient
private boolean
persistenceUnits
private boolean
partition
private int
reportLevel
private boolean
useTimeStamp
private boolean
usingGui
private boolean
isBackend
private String
jarFileName
private String
outputDirName
private String
explodedArchivePath
private ResultManager
resultManager
private com.sun.enterprise.deployment.deploy.shared.AbstractArchive
abstractArchive
private boolean
isPortabilityMode
private String
domainDir
private String
extDir
private List
classPath
private com.sun.enterprise.deployment.Application
application
private File
jspOutDir
private String
configDirStr
private String
javaEEVersion
Constructors Summary
Methods Summary
public com.sun.enterprise.deployment.deploy.shared.AbstractArchivegetAbstractArchive()

        return abstractArchive;
    
public com.sun.enterprise.deployment.ApplicationgetApplication()

        return application;
    
public java.util.ListgetClassPath()

        return classPath;
    
public java.lang.StringgetConfigDirStr()

return
the config directory where verifier specific files are kept like Test-Names.xml and xsl files

        return configDirStr;
    
public java.lang.StringgetDomainDir()

        return domainDir;
    
public java.lang.StringgetExplodedArchivePath()

return
The directory where verifier explodes the archive

        return explodedArchivePath;
    
public java.lang.StringgetExtDir()

        return extDir;
    
public java.lang.StringgetJarFileName()
get the jar file name to be verifier

return

        return jarFileName;
    
public java.lang.StringgetJavaEEVersion()

        return javaEEVersion;
    
public java.io.FilegetJspOutDir()

        return jspOutDir;
    
public java.lang.StringgetOutputDirName()

return
string the output directory where to keep the generated reports

        return outputDirName;
    
public intgetReportLevel()

return
return the reporting level of verifier

        return reportLevel;
    
public ResultManagergetResultManager()

        return resultManager;
    
public booleanisApp()

return
returns true if application tests are enabled with partioning option.


                    
       
        return app;
    
public booleanisAppClient()

return
returns true if application client tests are enabled with partioning option.

        return appClient;
    
public booleanisBackend()

        return isBackend;
    
public booleanisConnector()

return
returns true if connector tests are enabled with partioning option.

        return connector;
    
public booleanisEjb()

return
returns true if Ejb tests are enabled with partioning option.

        return ejb;
    
public booleanisPartition()

return
returns true if partitioning option is enabled.

        return partition;
    
public booleanisPersistenceUnits()

        return persistenceUnits;
    
public booleanisPortabilityMode()

        return isPortabilityMode;
    
public booleanisUseTimeStamp()

return
return if timestamp is added to the report files

        return useTimeStamp;
    
public booleanisUsingGui()

return
verifier invokation, in gui mode or command line mode

        return usingGui;
    
public booleanisWeb()

return
returns true if Web tests are enabled with partioning option.

        return web;
    
public booleanisWebServices()

return
returns true if Webservices tests are enabled with partioning option.

        return webServices;
    
public booleanisWebServicesClient()

return
returns true if Webservices client tests are enabled with partioning option.

        return webServicesClient;
    
public voidsetAbstractArchive(com.sun.enterprise.deployment.deploy.shared.AbstractArchive abstractArchive)

        this.abstractArchive = abstractArchive;
    
public voidsetApp(boolean app)
If -a option is passed to verifier this variable is set for invoking only application related tests

param
app

        this.app = app;
    
public voidsetAppClient(boolean appClient)
If -p option is passed to verifier this variable is set for invoking only application client related tests

param
appClient

        this.appClient = appClient;
    
public voidsetApplication(com.sun.enterprise.deployment.Application application)

        this.application = application;
    
public voidsetClassPath(java.util.List classPath)

        this.classPath = classPath;
    
public voidsetConfigDirStr(java.lang.String configDirStr)
set the config dir.

param
configDirStr

        this.configDirStr = configDirStr;
    
public voidsetConnector(boolean connector)
If -c option is passed to verifier this variable is set for invoking only connector related tests

param
connector

        this.connector = connector;
    
public voidsetDomainDir(java.lang.String domainDir)

        this.domainDir = domainDir;
    
public voidsetEjb(boolean ejb)
If -e option is passed to verifier this variable is set for invoking only ejb related tests

param
ejb

        this.ejb = ejb;
    
public voidsetExplodedArchivePath(java.lang.String explodedArchivePath)

param
explodedArchivePath directory path where verifier explodes the archive

        this.explodedArchivePath = explodedArchivePath;
    
public voidsetExtDir(java.lang.String extDir)

        this.extDir = extDir;
    
public voidsetIsBackend(boolean b)

        this.isBackend = b;
    
public voidsetJarFileName(java.lang.String jarFileName)
sets the jar file name to be verified

param
jarFileName

        this.jarFileName = jarFileName;
    
public voidsetJavaEEVersion(java.lang.String javaEEVersion)

        this.javaEEVersion = javaEEVersion;
    
public voidsetJspOutDir(java.io.File jspOutDir)

        this.jspOutDir = jspOutDir;
    
public voidsetOutputDirName(java.lang.String outputDirName)
set the output directory where to keep the report files

param
outputDirName

        this.outputDirName = outputDirName;
    
public voidsetPartition(boolean partition)
if verifier is invoked to run tests for specific component(s) this variable is set to true

param
partition

        this.partition = partition;
    
public voidsetPersistenceUnits(boolean persistenceUnits)
If -P option is passed to verifier this variable is set for invoking only persistence related tests

param
persistenceUnits

        this.persistenceUnits = persistenceUnits;
    
public voidsetPortabilityMode(boolean portabilityMode)

        isPortabilityMode = portabilityMode;
    
public voidsetReportLevel(int reportLevel)
set the reporting level of verifier

param
reportLevel

        this.reportLevel = reportLevel;
    
public voidsetResultManager(ResultManager resultManager)

        this.resultManager = resultManager;
    
public voidsetUseTimeStamp(boolean useTimeStamp)
set option to append timestamp to report files

param
useTimeStamp

        this.useTimeStamp = useTimeStamp;
    
public voidsetUsingGui(boolean usingGui)

param
usingGui set the value to true if verifier is invoked in GUI mode.

        this.usingGui = usingGui;
    
public voidsetWeb(boolean web)
If -w option is passed to verifier this variable is set for invoking only web related tests

param
web

        this.web = web;
    
public voidsetWebServices(boolean webServices)
If -s option is passed to verifier this variable is set for invoking only webServices related tests

param
webServices

        this.webServices = webServices;
    
public voidsetWebServicesClient(boolean webServicesClient)
If -l option is passed to verifier this variable is set for invoking only webservices client related tests

param
webServicesClient

        this.webServicesClient = webServicesClient;