Interface TaskExpansionStrategy
- All Known Implementing Classes:
ConfigurationPropertyValueHintTaskExpansionStrategy
,UnfinishedTaskAppNameExpansionStrategy
public interface TaskExpansionStrategy
Used to enhance a well formed task definition by adding yet more text to it
(e.g. adding more options to a module).
- Author:
- Eric Bottard, Andy Clement
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addProposals
(String text, TaskDefinition taskDefinition, int detailLevel, List<CompletionProposal> collector) For a given task DSL text andTaskDefinition
, GenerateCompletionProposal
s that apply (if any) and add them to the providedcollector
list Returntrue
if no other strategies should be applied for the task DSL text (this strategy make take the liberty to erase already collected proposals)
-
Method Details
-
addProposals
boolean addProposals(String text, TaskDefinition taskDefinition, int detailLevel, List<CompletionProposal> collector) For a given task DSL text andTaskDefinition
,- Generate
CompletionProposal
s that apply (if any) and add them to the providedcollector
list - Return
true
if no other strategies should be applied for the task DSL text (this strategy make take the liberty to erase already collected proposals)
- Parameters:
text
- DSL text for the tasktaskDefinition
- task definitiondetailLevel
- integer representing the amount of detail to include in the generatedCompletionProposal
s (higher values mean more details. typical range is [1..5])collector
- list ofCompletionProposal
s to add/remove from if this strategy applies- Returns:
true
if no other strategies should be applied for the task DSL text
- Generate
-