Class PluginConfigKeyAllowedValue<T>
- java.lang.Object
-
- com.funnelback.plugin.details.model.PluginConfigKeyAllowedValue<T>
-
- Type Parameters:
T
- type of key value
public class PluginConfigKeyAllowedValue<T> extends Object
Define plugin configuration key allowed value To define fixed list of allowed values, set `values`values
. For example, to allow only configuration key to be set to "A" or "Z":
To define set `regex`new PluginConfigKeyAllowedValue(List.of("A", "Z"))
regex
. For example, to allow value to be in format 'number.number' ie. 1.2, 3.4:new PluginConfigKeyAllowedValue(Pattern.compile("\\d\\.\\d"))
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PluginConfigKeyAllowedValue.AllowedType
-
Field Summary
Fields Modifier and Type Field Description private Pattern
regex
Define regular expression to run against provided plugin configuration key value to determine if a value is allowed to display in plugin configuration admin UIprivate @NonNull PluginConfigKeyAllowedValue.AllowedType
type
Type of allowed valuesprivate List<T>
values
Define a list of fixed values that plugin configuration key value can be set to to display in plugin configuration admin UI and in auto-generated documentation
-
Constructor Summary
Constructors Modifier Constructor Description private
PluginConfigKeyAllowedValue()
This private constructor is required for JSOM deserializerPluginConfigKeyAllowedValue(@NonNull List<T> values)
PluginConfigKeyAllowedValue(@NonNull Pattern regex)
-
-
-
Field Detail
-
type
@NonNull private final @NonNull PluginConfigKeyAllowedValue.AllowedType type
Type of allowed values
-
values
private final List<T> values
Define a list of fixed values that plugin configuration key value can be set to to display in plugin configuration admin UI and in auto-generated documentation
-
regex
private final Pattern regex
Define regular expression to run against provided plugin configuration key value to determine if a value is allowed to display in plugin configuration admin UI
-
-
Constructor Detail
-
PluginConfigKeyAllowedValue
private PluginConfigKeyAllowedValue()
This private constructor is required for JSOM deserializer
-
PluginConfigKeyAllowedValue
public PluginConfigKeyAllowedValue(@NonNull @NonNull Pattern regex)
-
-