public class KeywordsInterview extends Interview implements Parameters.MutableKeywordsParameters
Interview.BadHelpFault, Interview.Fault, Interview.HelpNotFoundFault, Interview.NotOnPathFault, Interview.ObserverEXPORT_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, TEMPLATE_PREFALL_OF, ANY_OF, EXPR, MATCH_KEYWORDS, NO_KEYWORDS| Constructor and Description |
|---|
KeywordsInterview(InterviewParameters parent)
Create an interview.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
TestFilter |
getKeywordFilter()
Get a test filter based on the keyword expression in the interview.
|
Keywords |
getKeywords()
Get a Keywords object based on the information in the interview.
|
int |
getKeywordsMode()
Get the current keywords mode.
|
int |
getMatchKeywordsMode()
Get a value which indicates how to interpret the match value,
when the keywords mode is set to MATCH_KEYWORDS.
|
java.lang.String |
getMatchKeywordsValue()
Get a value that identifies which tests are to be selected,
when the keywords mode is set to MATCH_KEYWORDS.
|
void |
setKeywords(int mode,
java.lang.String value)
Set the details of the keywords to be used, if any,
to filter tests for execution.
|
void |
setKeywordsMode(int mode)
Set the current keywords mode.
|
void |
setMatchKeywords(int mode,
java.lang.String value)
Set how to match a tests keywords when the keywords mode
is set to MATCH_KEYWORDS.
|
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, writeLocalepublic KeywordsInterview(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 Keywords getKeywords()
getKeywords in interface Parameters.KeywordsParameterssetKeywords(int, java.lang.String)public void setKeywords(int mode,
java.lang.String value)
Parameters.MutableKeywordsParameterssetKeywords in interface Parameters.MutableKeywordsParametersmode - the value of the match keywords mode to be set if
value is not nullvalue - if null, the keywords mode will be set to NO_KEYWORDS;
if not null, the keywords mode will be set to MATCH_KEYWORDS, the
match keywords mode will be set to mode,
and the match keywords value will be set to this valueParameters.KeywordsParameters.getKeywords(),
Parameters.MutableKeywordsParameters.NO_KEYWORDS,
Parameters.MutableKeywordsParameters.MATCH_KEYWORDSpublic int getKeywordsMode()
Parameters.MutableKeywordsParametersgetKeywordsMode in interface Parameters.MutableKeywordsParametersParameters.MutableKeywordsParameters.setKeywordsMode(int),
Parameters.MutableKeywordsParameters.NO_KEYWORDS,
Parameters.MutableKeywordsParameters.MATCH_KEYWORDSpublic void setKeywordsMode(int mode)
Parameters.MutableKeywordsParameterssetKeywordsMode in interface Parameters.MutableKeywordsParametersmode - set to NO_KEYWORDS if no keyword filtering will be
used to select tests for execution, or MATCH_KEYWORDS if keywords
will be filtered according to the match mode and match value.Parameters.MutableKeywordsParameters.getKeywordsMode(),
Parameters.MutableKeywordsParameters.NO_KEYWORDS,
Parameters.MutableKeywordsParameters.MATCH_KEYWORDSpublic int getMatchKeywordsMode()
Parameters.MutableKeywordsParametersgetMatchKeywordsMode in interface Parameters.MutableKeywordsParametersParameters.MutableKeywordsParameters.setMatchKeywords(int, java.lang.String),
Parameters.MutableKeywordsParameters.ANY_OF,
Parameters.MutableKeywordsParameters.ALL_OF,
Parameters.MutableKeywordsParameters.EXPRpublic java.lang.String getMatchKeywordsValue()
Parameters.MutableKeywordsParametersgetMatchKeywordsValue in interface Parameters.MutableKeywordsParametersParameters.MutableKeywordsParameters.setMatchKeywords(int, java.lang.String),
Parameters.MutableKeywordsParameters.ANY_OF,
Parameters.MutableKeywordsParameters.ALL_OF,
Parameters.MutableKeywordsParameters.EXPRpublic void setMatchKeywords(int mode,
java.lang.String value)
Parameters.MutableKeywordsParameterssetMatchKeywords in interface Parameters.MutableKeywordsParametersmode - A value indicating how to interpret valuevalue - If mode is set to ANY_OF or ALL_OF,
this value should give a white-space separate list of keywords
to be matched; if mode is set to EXPR, this value
should be a boolean expression using terminals, & (and), | (or),
! (negation) and parentheses, where the terminals are true if
a test description contains that name as one of its keywords.Parameters.MutableKeywordsParameters.getMatchKeywordsMode(),
Parameters.MutableKeywordsParameters.getMatchKeywordsValue(),
Parameters.MutableKeywordsParameters.ANY_OF,
Parameters.MutableKeywordsParameters.ALL_OF,
Parameters.MutableKeywordsParameters.EXPRpublic TestFilter getKeywordFilter()
Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.