Class ConfigurationPropertyValueHintExpansionStrategy

java.lang.Object
org.springframework.cloud.dataflow.completion.ConfigurationPropertyValueHintExpansionStrategy
All Implemented Interfaces:
ExpansionStrategy

public class ConfigurationPropertyValueHintExpansionStrategy extends Object implements ExpansionStrategy
Attempts to fill in possible values after a --foo=prefix (syntactically valid) construct in the DSL.
Author:
Eric Bottard, Mark Fisher, Oleg Zhurakousky
  • Method Details

    • addProposals

      public boolean addProposals(String text, StreamDefinition streamDefinition, int detailLevel, List<CompletionProposal> collector)
      Description copied from interface: ExpansionStrategy
      For a given stream DSL text and StreamDefinition,
      • Generate CompletionProposals that apply (if any) and add them to the provided collector list
      • Return true if no other strategies should be applied for the stream DSL text (this strategy make take the liberty to erase already collected proposals)
      Specified by:
      addProposals in interface ExpansionStrategy
      Parameters:
      text - DSL text for the stream
      streamDefinition - stream definition
      detailLevel - integer representing the amount of detail to include in the generated CompletionProposals (higher values mean more details. typical range is [1..5])
      collector - list of CompletionProposals to add/remove from if this strategy applies
      Returns:
      true if no other strategies should be applied for the stream DSL text