nl.openedge.baritus.validation
Class AbstractFieldValidator

java.lang.Object
  extended bynl.openedge.baritus.validation.AbstractValidator
      extended bynl.openedge.baritus.validation.AbstractFieldValidator
All Implemented Interfaces:
FieldValidator, ValidationRuleDependend
Direct Known Subclasses:
MaximumFieldLengthValidator, MinimumFieldLengthValidator, RegexValidator, RequiredFieldValidator

public abstract class AbstractFieldValidator
extends AbstractValidator
implements FieldValidator, ValidationRuleDependend

Convenience class with default error message handling.

Author:
Eelco Hillenius

Constructor Summary
AbstractFieldValidator()
          Construct emtpy.
AbstractFieldValidator(ValidationActivationRule rule)
          Construct with the given rule.
 
Method Summary
 java.lang.Object getOverrideValue(java.lang.Object value)
          Get the override value.
 
Methods inherited from class nl.openedge.baritus.validation.AbstractValidator
getFieldName, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getValidationActivationRule, removeValidationActivationRule, setErrorMessage, setValidationRule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface nl.openedge.baritus.validation.FieldValidator
isValid
 
Methods inherited from interface nl.openedge.baritus.validation.ValidationRuleDependend
getValidationActivationRule, removeValidationActivationRule, setValidationRule
 

Constructor Detail

AbstractFieldValidator

public AbstractFieldValidator()
Construct emtpy.


AbstractFieldValidator

public AbstractFieldValidator(ValidationActivationRule rule)
Construct with the given rule.

Parameters:
rule - activation rule
Method Detail

getOverrideValue

public java.lang.Object getOverrideValue(java.lang.Object value)
Get the override value. By default returns the value unchanged.

Specified by:
getOverrideValue in interface FieldValidator
Parameters:
value - the original input value
Returns:
Object unchanged value
See Also:
FieldValidator.getOverrideValue(java.lang.Object)


Copyright © 2003-2004 Open Edge. All Rights Reserved.