public interface ActionValidator
ActionList
property.
The implementing class is stored in the ActionBeanInfo.ATTRIBUTE_ACTION_VALIDATOR
value of an
action bean descriptor.
With an action validator, you can check at design-time if the values of the bean properties are valid
and notify the user if this is not the case. This only differs from a BeanValidator
in that you are
also supplied with a list of action keys that were configured for an ActionList
property that contains
the validated action.
BeanInitializer
Modifier and Type | Method and Description |
---|---|
void |
validateAction(Action action,
java.util.List<java.lang.String> actionKeys)
Called by the install4j GUI at design-time to check the validity of the bean properties.
|
void validateAction(Action action, java.util.List<java.lang.String> actionKeys) throws BeanValidationException
action
- the action that should be validatedactionKeys
- the action keys configured for the ActionList
property by calling
ActionListPropertyDescriptor.setActionKeys(String[])
BeanValidationException
- Throw this exception if the bean properties are not valid