com.arsdigita.bebop.parameters
Class EnumerationValidationListener
java.lang.Object
com.arsdigita.bebop.parameters.EnumerationValidationListener
- All Implemented Interfaces:
- EventListener, ParameterListener
- public class EnumerationValidationListener
- extends Object
- implements ParameterListener
Verifies that the
parameter's value is a member of a list of Strings
- Author:
- Karl Goldstein, Uday Mathur, Stas Freidin, Rory Solomon
Method Summary |
void |
validate(ParameterEvent e)
Performs a validation check on the data objects associated with a
specific parameter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
versionId
public static final String versionId
- See Also:
- Constant Field Values
EnumerationValidationListener
public EnumerationValidationListener(String[] allowedValues)
EnumerationValidationListener
public EnumerationValidationListener(String[] allowedValues,
boolean caseSensitive)
validate
public void validate(ParameterEvent e)
- Description copied from interface:
ParameterListener
- Performs a validation check on the data objects associated with a
specific parameter. Validate should call
ParameterData.addError() with a message regarding the nature
of the error.
- Specified by:
validate
in interface ParameterListener
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC