Package com.sun.javatest.interview
Class ExcludeListInterview
java.lang.Object
com.sun.interview.Interview
com.sun.javatest.interview.ExcludeListInterview
- All Implemented Interfaces:
Parameters.ExcludeListParameters
,Parameters.MutableExcludeListParameters
public class ExcludeListInterview
extends Interview
implements Parameters.MutableExcludeListParameters
This interview collects the "exclude list" test filter parameters.
It is normally used as one of a series of sub-interviews that collect
the parameter information for a test run.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sun.interview.Interview
Interview.BadHelpFault, Interview.Fault, Interview.HelpNotFoundFault, Interview.NotOnPathFault, Interview.Observer
-
Field Summary
Fields inherited from class com.sun.interview.Interview
EXPORT_IGNORE_ALL_EXCEPTIONS, EXPORT_IGNORE_NO_EXCEPTIONS, EXPORT_IGNORE_RUNTIME_EXCEPTIONS, EXTERNAL_PREF, helpSetFactory, INTERVIEW, LOCALE, MARKERS, MARKERS_PREF, QUESTION, SEMANTIC_MAX_VERSION, SEMANTIC_PRE_32, SEMANTIC_VERSION_32, SEMANTIC_VERSION_43, SEMANTIC_VERSION_50, TEMPLATE_PREF
Fields inherited from interface com.sun.javatest.Parameters.MutableExcludeListParameters
CHECK_EVERY_RUN, CHECK_EVERY_X_DAYS, CUSTOM_EXCLUDE_LIST, INITIAL_EXCLUDE_LIST, LATEST_EXCLUDE_LIST, NO_EXCLUDE_LIST
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
File[]
Get the files used to define the exclude list when the exclude list mode is set to CUSTOM_EXCLUDE_LIST.File[]
Get the set of files which define the exclude list.Get a test filter generated from the exclude list files in the interview.Get the exclude list generated from the exclude list files in the interview.int
Get the current exclude list mode.int
Get the interval, in days, to be used when automatically checking for exclude list updates and the auto check mode is set to CHECK_EVERY_X_DAYS.int
Get the mode which defines how often to automatically check for updated exclude lists, when the exclude list mode is set to LATEST_EXCLUDE_LIST, and the automatic check is enabled.boolean
Check if the automatic check for newer exclude lists is enabled when the exclude list mode is set to LATEST_EXCLUDE_LIST.void
setCustomExcludeFiles
(File... files) Set the files used to define the exclude list when the exclude list mode is set to CUSTOM_EXCLUDE_LIST.void
setExcludeFiles
(File... files) Set the set of files used to define the exclude list.void
setExcludeMode
(int mode) Set the current exclude list mode.void
setLatestExcludeAutoCheckEnabled
(boolean b) Specify if the automatic check for newer exclude lists is enabled when the exclude list mode is set to LATEST_EXCLUDE_LIST.void
setLatestExcludeAutoCheckInterval
(int days) Set the interval, in days, to be used when automatically checking for exclude list updates and the auto check mode is set to CHECK_EVERY_X_DAYS.void
setLatestExcludeAutoCheckMode
(int mode) Set the mode which defines how often to automatically check for updated exclude lists, when the exclude list mode is set to LATEST_EXCLUDE_LIST, and the automatic check is enabled.Methods inherited from class com.sun.interview.Interview
addObserver, callInterview, clear, clearMarkedResponses, containsObserver, createChecklist, createChecklistItem, createChecklistItem, createChecklistItem, export, getAllQuestions, getCurrentQuestion, getDefaultImage, getExportIgnoreExceptionPolicy, getExternalProperties, getFirstQuestion, getHelpSet, getInterview, getInterviewSemantics, getParent, getPath, getPathToCurrent, getPropertyKeys, getQuestions, getRawPath, getResourceBundle, getResourceString, getResourceString, getRoot, getTag, getTitle, hasNext, hasValidNext, isChecklistEmpty, isChecksumValid, isEdited, isFinishable, isFirst, isInterviewFinishable, isLast, isRoot, isStarted, iteratePath, iteratePathToCurrent, last, load, load, next, pathContains, pathContains, prev, propagateTemplateForAll, readLocale, removeAllMarkers, removeMarkers, removeObserver, reset, retrieveProperty, retrieveTemplateKeys, retrieveTemplateProperty, save, setBaseTag, setCurrentQuestion, setDefaultImage, setEdited, setExportIgnoreExceptionPolicy, setFirstQuestion, setHelpSet, setHelpSet, setHelpSet, setInterviewSemantics, setResourceBundle, setResourceBundle, setTitle, storeProperty, storeTemplateProperties, storeTemplateProperty, updatePath, updatePath, verifyPathContains, writeLocale
-
Constructor Details
-
ExcludeListInterview
Create an interview.- Parameters:
parent
- The parent interview of which this is a child.- Throws:
Interview.Fault
- if there is a problem while creating the interview.
-
-
Method Details
-
dispose
public void dispose() -
getExcludeFiles
Description copied from interface:Parameters.MutableExcludeListParameters
Get the set of files which define the exclude list. The files are all returned as absolute files.- Specified by:
getExcludeFiles
in interfaceParameters.MutableExcludeListParameters
- Returns:
- the set of files which define the exclude list
- See Also:
-
setExcludeFiles
Description copied from interface:Parameters.MutableExcludeListParameters
Set the set of files used to define the exclude list.- Specified by:
setExcludeFiles
in interfaceParameters.MutableExcludeListParameters
- Parameters:
files
- If null, the exclude mode will be set to NO_EXCLUDE_LIST; if not null, the exclude mode will be set to CUSTOM_EXCLUDE_LIST and the custom exclude files will be set to this value- See Also:
-
getExcludeMode
public int getExcludeMode()Description copied from interface:Parameters.MutableExcludeListParameters
Get the current exclude list mode.- Specified by:
getExcludeMode
in interfaceParameters.MutableExcludeListParameters
- Returns:
- A value indicating the current exclude list mode
- See Also:
-
setExcludeMode
public void setExcludeMode(int mode) Description copied from interface:Parameters.MutableExcludeListParameters
Set the current exclude list mode.- Specified by:
setExcludeMode
in interfaceParameters.MutableExcludeListParameters
- Parameters:
mode
- A value indicating the desired exclude list mode- See Also:
-
getCustomExcludeFiles
Description copied from interface:Parameters.MutableExcludeListParameters
Get the files used to define the exclude list when the exclude list mode is set to CUSTOM_EXCLUDE_LIST.- Specified by:
getCustomExcludeFiles
in interfaceParameters.MutableExcludeListParameters
- Returns:
- the files used to define a custom exclude list
- See Also:
-
setCustomExcludeFiles
Description copied from interface:Parameters.MutableExcludeListParameters
Set the files used to define the exclude list when the exclude list mode is set to CUSTOM_EXCLUDE_LIST.- Specified by:
setCustomExcludeFiles
in interfaceParameters.MutableExcludeListParameters
- Parameters:
files
- the files used to define a custom exclude list- See Also:
-
isLatestExcludeAutoCheckEnabled
public boolean isLatestExcludeAutoCheckEnabled()Description copied from interface:Parameters.MutableExcludeListParameters
Check if the automatic check for newer exclude lists is enabled when the exclude list mode is set to LATEST_EXCLUDE_LIST.- Specified by:
isLatestExcludeAutoCheckEnabled
in interfaceParameters.MutableExcludeListParameters
- Returns:
- true if the automatic check is enabled
- See Also:
-
setLatestExcludeAutoCheckEnabled
public void setLatestExcludeAutoCheckEnabled(boolean b) Description copied from interface:Parameters.MutableExcludeListParameters
Specify if the automatic check for newer exclude lists is enabled when the exclude list mode is set to LATEST_EXCLUDE_LIST.- Specified by:
setLatestExcludeAutoCheckEnabled
in interfaceParameters.MutableExcludeListParameters
- Parameters:
b
- whether or not the automatic check is enabled- See Also:
-
getLatestExcludeAutoCheckMode
public int getLatestExcludeAutoCheckMode()Description copied from interface:Parameters.MutableExcludeListParameters
Get the mode which defines how often to automatically check for updated exclude lists, when the exclude list mode is set to LATEST_EXCLUDE_LIST, and the automatic check is enabled.- Specified by:
getLatestExcludeAutoCheckMode
in interfaceParameters.MutableExcludeListParameters
- Returns:
- a value indicating how often to check for the availability of a newer exclude list
- See Also:
-
setLatestExcludeAutoCheckMode
public void setLatestExcludeAutoCheckMode(int mode) Description copied from interface:Parameters.MutableExcludeListParameters
Set the mode which defines how often to automatically check for updated exclude lists, when the exclude list mode is set to LATEST_EXCLUDE_LIST, and the automatic check is enabled.- Specified by:
setLatestExcludeAutoCheckMode
in interfaceParameters.MutableExcludeListParameters
- Parameters:
mode
- a value indicating how often to check for the availability of a newer exclude list- See Also:
-
getLatestExcludeAutoCheckInterval
public int getLatestExcludeAutoCheckInterval()Description copied from interface:Parameters.MutableExcludeListParameters
Get the interval, in days, to be used when automatically checking for exclude list updates and the auto check mode is set to CHECK_EVERY_X_DAYS.- Specified by:
getLatestExcludeAutoCheckInterval
in interfaceParameters.MutableExcludeListParameters
- Returns:
- the interval, in days, between checks
- See Also:
-
setLatestExcludeAutoCheckInterval
public void setLatestExcludeAutoCheckInterval(int days) Description copied from interface:Parameters.MutableExcludeListParameters
Set the interval, in days, to be used when automatically checking for exclude list updates and the auto check mode is set to CHECK_EVERY_X_DAYS.- Specified by:
setLatestExcludeAutoCheckInterval
in interfaceParameters.MutableExcludeListParameters
- Parameters:
days
- the number of days to wait between checks- See Also:
-
getExcludeList
Get the exclude list generated from the exclude list files in the interview.- Specified by:
getExcludeList
in interfaceParameters.ExcludeListParameters
- Returns:
- the exclude list generated from the exclude list files in the interview
- See Also:
-
getExcludeFilter
Get a test filter generated from the exclude list files in the interview.- Returns:
- a test filter generated from the exclude list files in the interview or null, if no filter is required
- See Also:
-