Class UnfinishedAppNameExpansionStrategy
java.lang.Object
org.springframework.cloud.dataflow.completion.UnfinishedAppNameExpansionStrategy
- All Implemented Interfaces:
ExpansionStrategy
Provides completions by finding apps whose name starts with a prefix (which was assumed
to be a correct app name, but wasn't).
- Author:
- Eric Bottard, Mark Fisher
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddProposals(String text, StreamDefinition streamDefinition, int detailLevel, List<CompletionProposal> collector) For a given stream DSL text andStreamDefinition, GenerateCompletionProposals that apply (if any) and add them to the providedcollectorlist Returntrueif no other strategies should be applied for the stream DSL text (this strategy make take the liberty to erase already collected proposals)
-
Method Details
-
addProposals
public boolean addProposals(String text, StreamDefinition streamDefinition, int detailLevel, List<CompletionProposal> collector) Description copied from interface:ExpansionStrategyFor a given stream DSL text andStreamDefinition,- Generate
CompletionProposals that apply (if any) and add them to the providedcollectorlist - Return
trueif no other strategies should be applied for the stream DSL text (this strategy make take the liberty to erase already collected proposals)
- Specified by:
addProposalsin interfaceExpansionStrategy- Parameters:
text- DSL text for the streamstreamDefinition- stream definitiondetailLevel- integer representing the amount of detail to include in the generatedCompletionProposals (higher values mean more details. typical range is [1..5])collector- list ofCompletionProposals to add/remove from if this strategy applies- Returns:
trueif no other strategies should be applied for the stream DSL text
- Generate
-