org.rhq.enterprise.gui.legacy.validator
Class BaseValidator
java.lang.Object
org.rhq.enterprise.gui.legacy.validator.BaseValidator
- Direct Known Subclasses:
- IdenticalValidator
public abstract class BaseValidator
- extends Object
This declares a common interface for validators. It is an abstract class in case we need to put common methods here.
|
Constructor Summary |
BaseValidator()
Creates a new instance of BaseValidator |
|
Method Summary |
abstract boolean |
validate(Object bean,
org.apache.commons.validator.ValidatorAction va,
org.apache.commons.validator.Field field,
org.apache.struts.action.ActionMessages errors,
javax.servlet.http.HttpServletRequest request)
This method should be overridden to perform whatever validation locgic is necessary. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseValidator
public BaseValidator()
- Creates a new instance of BaseValidator
validate
public abstract boolean validate(Object bean,
org.apache.commons.validator.ValidatorAction va,
org.apache.commons.validator.Field field,
org.apache.struts.action.ActionMessages errors,
javax.servlet.http.HttpServletRequest request)
- This method should be overridden to perform whatever validation locgic is necessary.
- Parameters:
bean - va - field - errors - Any errors should be stored in the ActionErrors collection.request - The current http request that is being processed.
- Returns:
- Returns true if the form is valid according to the logic in this method, false if not.
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.