org.formproc.validation
Class ValidatorGroup
java.lang.Object
|
+--org.formproc.validation.Validator
|
+--org.formproc.validation.ValidatorGroup
- All Implemented Interfaces:
- java.lang.Cloneable
- public class ValidatorGroup
- extends Validator
A Validator which contains a list of child validators to be
executed in order.
- Author:
- Anthony Eden
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValidatorGroup
public ValidatorGroup()
- Construct a new ValidatorGroup.
getValidators
public java.util.List getValidators()
- Get the List of validators in the group.
- Returns:
- A List of FormValidator objects
configureInternal
public void configureInternal(com.anthonyeden.lib.config.Configuration configuration)
throws java.lang.Exception
- Configure the validator.
- Overrides:
configureInternal
in class Validator
- Parameters:
configuration
- The Configuration object
- Throws:
java.lang.Exception
validate
public ValidationResult validate(FormElement[] formElements,
FormData[] formData,
java.util.Locale locale)
throws java.lang.Exception
- Validate the given FormData.
- Specified by:
validate
in class Validator
- Parameters:
formData
- The FormDataformElements
- An array of FormElement objectslocale
- The Locale
- Returns:
- The validation result
- Throws:
java.lang.Exception
Copyright (c) 2001-2003 Anthony Eden. All Rights Reserved.