public class ExcludeListInterview extends Interview implements Parameters.MutableExcludeListParameters
Interview.BadHelpFault, Interview.Fault, Interview.HelpNotFoundFault, Interview.NotOnPathFault, Interview.Observer
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
CHECK_EVERY_RUN, CHECK_EVERY_X_DAYS, CUSTOM_EXCLUDE_LIST, INITIAL_EXCLUDE_LIST, LATEST_EXCLUDE_LIST, NO_EXCLUDE_LIST
Constructor and Description |
---|
ExcludeListInterview(InterviewParameters parent)
Create an interview.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
java.io.File[] |
getCustomExcludeFiles()
Get the files used to define the exclude list when the
exclude list mode is set to CUSTOM_EXCLUDE_LIST.
|
java.io.File[] |
getExcludeFiles()
Get the set of files which define the exclude list.
|
TestFilter |
getExcludeFilter()
Get a test filter generated from the exclude list files in the interview.
|
ExcludeList |
getExcludeList()
Get the exclude list generated from the exclude list files in the interview.
|
int |
getExcludeMode()
Get the current exclude list mode.
|
int |
getLatestExcludeAutoCheckInterval()
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 |
getLatestExcludeAutoCheckMode()
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 |
isLatestExcludeAutoCheckEnabled()
Check if the automatic check for newer exclude lists
is enabled when the exclude list mode is set to LATEST_EXCLUDE_LIST.
|
void |
setCustomExcludeFiles(java.io.File[] files)
Set the files used to define the exclude list when the
exclude list mode is set to CUSTOM_EXCLUDE_LIST.
|
void |
setExcludeFiles(java.io.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.
|
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
public ExcludeListInterview(InterviewParameters parent) throws Interview.Fault
parent
- The parent interview of which this is a child.Interview.Fault
- if there is a problem while creating the interview.public void dispose()
public java.io.File[] getExcludeFiles()
Parameters.MutableExcludeListParameters
getExcludeFiles
in interface Parameters.MutableExcludeListParameters
Parameters.MutableExcludeListParameters.getExcludeFiles()
,
Parameters.MutableExcludeListParameters.setExcludeFiles(java.io.File[])
public void setExcludeFiles(java.io.File[] files)
Parameters.MutableExcludeListParameters
setExcludeFiles
in interface Parameters.MutableExcludeListParameters
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 valueParameters.MutableExcludeListParameters.getExcludeFiles()
public int getExcludeMode()
Parameters.MutableExcludeListParameters
getExcludeMode
in interface Parameters.MutableExcludeListParameters
Parameters.MutableExcludeListParameters.setExcludeMode(int)
,
Parameters.MutableExcludeListParameters.NO_EXCLUDE_LIST
,
Parameters.MutableExcludeListParameters.INITIAL_EXCLUDE_LIST
,
Parameters.MutableExcludeListParameters.LATEST_EXCLUDE_LIST
,
Parameters.MutableExcludeListParameters.CUSTOM_EXCLUDE_LIST
public void setExcludeMode(int mode)
Parameters.MutableExcludeListParameters
setExcludeMode
in interface Parameters.MutableExcludeListParameters
mode
- A value indicating the desired exclude list modeParameters.MutableExcludeListParameters.getExcludeMode()
,
Parameters.MutableExcludeListParameters.NO_EXCLUDE_LIST
,
Parameters.MutableExcludeListParameters.INITIAL_EXCLUDE_LIST
,
Parameters.MutableExcludeListParameters.LATEST_EXCLUDE_LIST
,
Parameters.MutableExcludeListParameters.CUSTOM_EXCLUDE_LIST
public java.io.File[] getCustomExcludeFiles()
Parameters.MutableExcludeListParameters
getCustomExcludeFiles
in interface Parameters.MutableExcludeListParameters
Parameters.MutableExcludeListParameters.setCustomExcludeFiles(java.io.File[])
public void setCustomExcludeFiles(java.io.File[] files)
Parameters.MutableExcludeListParameters
setCustomExcludeFiles
in interface Parameters.MutableExcludeListParameters
files
- the files used to define a custom exclude listParameters.MutableExcludeListParameters.getCustomExcludeFiles()
public boolean isLatestExcludeAutoCheckEnabled()
Parameters.MutableExcludeListParameters
isLatestExcludeAutoCheckEnabled
in interface Parameters.MutableExcludeListParameters
Parameters.MutableExcludeListParameters.setLatestExcludeAutoCheckEnabled(boolean)
public void setLatestExcludeAutoCheckEnabled(boolean b)
Parameters.MutableExcludeListParameters
setLatestExcludeAutoCheckEnabled
in interface Parameters.MutableExcludeListParameters
b
- whether or not the automatic check is enabledParameters.MutableExcludeListParameters.isLatestExcludeAutoCheckEnabled()
public int getLatestExcludeAutoCheckMode()
Parameters.MutableExcludeListParameters
getLatestExcludeAutoCheckMode
in interface Parameters.MutableExcludeListParameters
Parameters.MutableExcludeListParameters.setLatestExcludeAutoCheckMode(int)
,
Parameters.MutableExcludeListParameters.CHECK_EVERY_X_DAYS
,
Parameters.MutableExcludeListParameters.CHECK_EVERY_RUN
public void setLatestExcludeAutoCheckMode(int mode)
Parameters.MutableExcludeListParameters
setLatestExcludeAutoCheckMode
in interface Parameters.MutableExcludeListParameters
mode
- a value indicating how often to check for the
availability of a newer exclude listParameters.MutableExcludeListParameters.getLatestExcludeAutoCheckMode()
,
Parameters.MutableExcludeListParameters.CHECK_EVERY_X_DAYS
,
Parameters.MutableExcludeListParameters.CHECK_EVERY_RUN
public int getLatestExcludeAutoCheckInterval()
Parameters.MutableExcludeListParameters
getLatestExcludeAutoCheckInterval
in interface Parameters.MutableExcludeListParameters
Parameters.MutableExcludeListParameters.setLatestExcludeAutoCheckInterval(int)
public void setLatestExcludeAutoCheckInterval(int days)
Parameters.MutableExcludeListParameters
setLatestExcludeAutoCheckInterval
in interface Parameters.MutableExcludeListParameters
days
- the number of days to wait between checksParameters.MutableExcludeListParameters.getLatestExcludeAutoCheckInterval()
public ExcludeList getExcludeList()
getExcludeList
in interface Parameters.ExcludeListParameters
getExcludeFiles()
public TestFilter getExcludeFilter()
getExcludeFiles()
Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved.