public class FixedValuesValueProvider extends Object implements org.mule.runtime.extension.api.values.ValueProvider
ValueProvider that provides the from a fixed place, whether it's an enum, map, collection or array.| Constructor and Description |
|---|
FixedValuesValueProvider(Collection<String> collection)
Constructor that defines the contents to be shown from the elements of a
Collection. |
FixedValuesValueProvider(Enum<?>... enumValues)
Constructor that defines the contents to be shown from the elements of an
Enum. |
FixedValuesValueProvider(Map<String,String> fixedValueMap)
Constructor that defines the contents to be shown from the entries of a
Map. |
FixedValuesValueProvider(String... fixedValues)
Constructor that defines the contents to be shown from the elements of an array of
Strings. |
public FixedValuesValueProvider(Map<String,String> fixedValueMap)
Map.fixedValueMap - The map that will define the values. The keys are the effective values to be set and the values are the displayed names.public FixedValuesValueProvider(Collection<String> collection)
Collection.collection - The collection that will define the values. The keys and the displayed names are the same and equal to the values of the collection.public FixedValuesValueProvider(Enum<?>... enumValues)
Enum.enumValues - The enum that will define the values. The keys and the displayed names are the same and equal to the values of the enum.public FixedValuesValueProvider(String... fixedValues)
Strings.fixedValues - The array that will define the values. The keys and the displayed names are the same and equal to the values of the array.public Set<org.mule.runtime.api.value.Value> resolve() throws org.mule.runtime.extension.api.values.ValueResolvingException
resolve in interface org.mule.runtime.extension.api.values.ValueProviderorg.mule.runtime.extension.api.values.ValueResolvingExceptionCopyright © 2018. All rights reserved.