Class BooleanValueHintProvider
java.lang.Object
org.springframework.cloud.dataflow.completion.BooleanValueHintProvider
- All Implemented Interfaces:
ValueHintProvider
Returns the closed set of true and false for properties that are
of type Boolean.
- Author:
- Eric Bottard
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.springframework.boot.configurationmetadata.ValueHint>generateValueHints(org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty property, ClassLoader classLoader) For a given property, return a list ofValueHintthat may apply.booleanisExclusive(org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty property) Returntrueif the values returned by this provider are the only values that apply as completion proposals.
-
Constructor Details
-
BooleanValueHintProvider
public BooleanValueHintProvider()
-
-
Method Details
-
generateValueHints
public List<org.springframework.boot.configurationmetadata.ValueHint> generateValueHints(org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty property, ClassLoader classLoader) Description copied from interface:ValueHintProviderFor a given property, return a list ofValueHintthat may apply.- Specified by:
generateValueHintsin interfaceValueHintProvider- Parameters:
property- property for which to generate value hintsclassLoader- class loader for the artifact/module that this property applies to; this may be used to load other classes/resources for generating value hints- Returns:
- list of value hints for the provided property
-
isExclusive
public boolean isExclusive(org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty property) Description copied from interface:ValueHintProviderReturntrueif the values returned by this provider are the only values that apply as completion proposals. If this returnstrue, then no other kind of completion applies until one of the returned values has been typed in full.- Specified by:
isExclusivein interfaceValueHintProvider- Parameters:
property- property for which to determine if the values returned by this provider are exclusive- Returns:
trueif the values returned by this provider are exclusive, thus requiring one of these values to be provided before any otherValueHintProvidermay be applied
-