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 Interview
Interview.BadHelpFault, Interview.Fault, Interview.HelpNotFoundFault, Interview.NotOnPathFault, Interview.Observer -
Field Summary
Fields inherited from class 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_PREFFields inherited from interface 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 TypeMethodDescriptionvoiddispose()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.intGet the current exclude list mode.intGet 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.intGet 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.booleanCheck if the automatic check for newer exclude lists is enabled when the exclude list mode is set to LATEST_EXCLUDE_LIST.voidsetCustomExcludeFiles(File... files) Set the files used to define the exclude list when the exclude list mode is set to CUSTOM_EXCLUDE_LIST.voidsetExcludeFiles(File... files) Set the set of files used to define the exclude list.voidsetExcludeMode(int mode) Set the current exclude list mode.voidsetLatestExcludeAutoCheckEnabled(boolean b) Specify if the automatic check for newer exclude lists is enabled when the exclude list mode is set to LATEST_EXCLUDE_LIST.voidsetLatestExcludeAutoCheckInterval(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.voidsetLatestExcludeAutoCheckMode(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 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.MutableExcludeListParametersGet the set of files which define the exclude list. The files are all returned as absolute files.- Specified by:
getExcludeFilesin interfaceParameters.MutableExcludeListParameters- Returns:
- the set of files which define the exclude list
- See Also:
-
setExcludeFiles
Description copied from interface:Parameters.MutableExcludeListParametersSet the set of files used to define the exclude list.- Specified by:
setExcludeFilesin 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.MutableExcludeListParametersGet the current exclude list mode.- Specified by:
getExcludeModein interfaceParameters.MutableExcludeListParameters- Returns:
- A value indicating the current exclude list mode
- See Also:
-
setExcludeMode
public void setExcludeMode(int mode) Description copied from interface:Parameters.MutableExcludeListParametersSet the current exclude list mode.- Specified by:
setExcludeModein interfaceParameters.MutableExcludeListParameters- Parameters:
mode- A value indicating the desired exclude list mode- See Also:
-
getCustomExcludeFiles
Description copied from interface:Parameters.MutableExcludeListParametersGet the files used to define the exclude list when the exclude list mode is set to CUSTOM_EXCLUDE_LIST.- Specified by:
getCustomExcludeFilesin interfaceParameters.MutableExcludeListParameters- Returns:
- the files used to define a custom exclude list
- See Also:
-
setCustomExcludeFiles
Description copied from interface:Parameters.MutableExcludeListParametersSet the files used to define the exclude list when the exclude list mode is set to CUSTOM_EXCLUDE_LIST.- Specified by:
setCustomExcludeFilesin interfaceParameters.MutableExcludeListParameters- Parameters:
files- the files used to define a custom exclude list- See Also:
-
isLatestExcludeAutoCheckEnabled
public boolean isLatestExcludeAutoCheckEnabled()Description copied from interface:Parameters.MutableExcludeListParametersCheck if the automatic check for newer exclude lists is enabled when the exclude list mode is set to LATEST_EXCLUDE_LIST.- Specified by:
isLatestExcludeAutoCheckEnabledin interfaceParameters.MutableExcludeListParameters- Returns:
- true if the automatic check is enabled
- See Also:
-
setLatestExcludeAutoCheckEnabled
public void setLatestExcludeAutoCheckEnabled(boolean b) Description copied from interface:Parameters.MutableExcludeListParametersSpecify if the automatic check for newer exclude lists is enabled when the exclude list mode is set to LATEST_EXCLUDE_LIST.- Specified by:
setLatestExcludeAutoCheckEnabledin interfaceParameters.MutableExcludeListParameters- Parameters:
b- whether or not the automatic check is enabled- See Also:
-
getLatestExcludeAutoCheckMode
public int getLatestExcludeAutoCheckMode()Description copied from interface:Parameters.MutableExcludeListParametersGet 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:
getLatestExcludeAutoCheckModein 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.MutableExcludeListParametersSet 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:
setLatestExcludeAutoCheckModein 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.MutableExcludeListParametersGet 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:
getLatestExcludeAutoCheckIntervalin interfaceParameters.MutableExcludeListParameters- Returns:
- the interval, in days, between checks
- See Also:
-
setLatestExcludeAutoCheckInterval
public void setLatestExcludeAutoCheckInterval(int days) Description copied from interface:Parameters.MutableExcludeListParametersSet 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:
setLatestExcludeAutoCheckIntervalin 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:
getExcludeListin 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:
-