Package com.install4j.api.beaninfo
Interface ActionValidator
-
public interface ActionValidatorValidates actions if the validation depends on a containingActionListproperty. The implementing class is stored in theActionBeanInfo.ATTRIBUTE_ACTION_VALIDATORvalue 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
BeanValidatorin that you are also supplied with a list of action keys that were configured for anActionListproperty that contains the validated action.- See Also:
BeanInitializer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidvalidateAction(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.
-
-
-
Method Detail
-
validateAction
void validateAction(Action action, java.util.List<java.lang.String> actionKeys) throws BeanValidationException
Called by the install4j GUI at design-time to check the validity of the bean properties. This method is called repeatedly when the user switches between different actions as well as by the compiler.- Parameters:
action- the action that should be validatedactionKeys- the action keys configured for theActionListproperty by callingActionListPropertyDescriptor.setActionKeys(String[])- Throws:
BeanValidationException- Throw this exception if the bean properties are not valid
-
-