de.innovationgate.wga.modules.options
public class ShareOpsOptionType extends CommaSeparatedListOptionType
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALL_OPERATIONS |
static ShareOpsOptionType |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
OptionValueProvider |
getValueProvider(WGAConfiguration configCopy)
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.
|
convert, isMultiValue, unconvert
getDataTypeHint, isEmptyAllowed
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDataTypeHint, isEmptyAllowed
public static final ShareOpsOptionType INSTANCE
public static final java.lang.String ALL_OPERATIONS
public OptionValueProvider getValueProvider(WGAConfiguration configCopy)
OptionType
getValueProvider
in interface OptionType
getValueProvider
in class StringOptionType
configCopy
- 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