Class ConfigurationPropertyValueHintTaskExpansionStrategy
java.lang.Object
org.springframework.cloud.dataflow.completion.ConfigurationPropertyValueHintTaskExpansionStrategy
- All Implemented Interfaces:
TaskExpansionStrategy
public class ConfigurationPropertyValueHintTaskExpansionStrategy
extends Object
implements TaskExpansionStrategy
Attempts to fill in possible values after a --foo=prefix (syntactically
valid) construct in the DSL.
- Author:
- Eric Bottard, Mark Fisher, Andy Clement, Oleg Zhurakousky
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addProposals
(String text, TaskDefinition parseResult, 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
public boolean addProposals(String text, TaskDefinition parseResult, int detailLevel, List<CompletionProposal> collector) Description copied from interface:TaskExpansionStrategy
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)
- Specified by:
addProposals
in interfaceTaskExpansionStrategy
- Parameters:
text
- DSL text for the taskparseResult
- 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
-