public class UnfinishedTaskAppNameExpansionStrategy extends Object implements TaskExpansionStrategy
Modifier and Type | Method and Description |
---|---|
boolean |
addProposals(String text,
TaskDefinition taskDefinition,
int detailLevel,
List<CompletionProposal> collector)
For a given task DSL text and
TaskDefinition ,
Generate CompletionProposal s that apply (if any) and add them to the
provided collector 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)
|
public boolean addProposals(String text, TaskDefinition taskDefinition, int detailLevel, List<CompletionProposal> collector)
TaskExpansionStrategy
TaskDefinition
,
CompletionProposal
s that apply (if any) and add them to the
provided collector
listtrue
if no other strategies should be applied for the task DSL
text (this strategy make take the liberty to erase already collected proposals)
addProposals
in interface TaskExpansionStrategy
text
- DSL text for the tasktaskDefinition
- task definitiondetailLevel
- integer representing the amount of detail to include in the
generated CompletionProposal
s (higher values mean more details. typical
range is [1..5])collector
- list of CompletionProposal
s to add/remove from if this
strategy appliestrue
if no other strategies should be applied for the task DSL textCopyright © 2024 Pivotal Software, Inc.. All rights reserved.