public class WorkflowEngineOptionType extends StringOptionType
INSTANCE
Constructor and Description |
---|
WorkflowEngineOptionType(ModuleRegistry reg) |
Modifier and Type | Method and Description |
---|---|
OptionValueProvider |
getValueProvider(WGAConfiguration cfg)
May return an option provider that provides allowed values for options of this type
|
boolean |
isRestricted()
If the type has a value provider: Determines if the option values are restricted to the values returned by it.
|
void |
validate(java.lang.String value,
java.util.Locale locale,
ValidationContext cx)
Validates the given value for this option type.
|
getDataTypeHint, isEmptyAllowed, isMultiValue
public WorkflowEngineOptionType(ModuleRegistry reg)
public OptionValueProvider getValueProvider(WGAConfiguration cfg)
OptionType
getValueProvider
in interface OptionType
getValueProvider
in class StringOptionType
cfg
- If the current functionality involves the WGA configuration it may pass over the current working copy of it so the provider may use itpublic boolean isRestricted()
OptionType
isRestricted
in interface OptionType
isRestricted
in class StringOptionType
public void validate(java.lang.String value, java.util.Locale locale, ValidationContext cx) throws OptionValueValidationException
OptionType
OptionValueValidationException
if validation failesvalidate
in interface OptionType
validate
in class StringOptionType
value
- The value to be validatedlocale
- A locale that may be used to give back an error message in the thrown validation exceptioncx
- Context information for the validationOptionValueValidationException
- if validation fails