it.eng.spago.validation.fieldvalidators
Class AbstractFieldValidator

java.lang.Object
  extended byit.eng.spago.validation.fieldvalidators.AbstractFieldValidator
All Implemented Interfaces:
FieldValidatorIFace
Direct Known Subclasses:
AlphaNumericValidator, DateValidator, DecimalValidator, EMailValidator, FiscalCodeValidator, GenericFieldValidator, LetterStringValidator, NameValidator, NumericValidator, RegExpValidator, UrlValidator

public abstract class AbstractFieldValidator
extends java.lang.Object
implements FieldValidatorIFace


Field Summary
static java.lang.String TYPED_SERVICE_REQUEST
          The Key of the element that represent the Typed service Request
 
Constructor Summary
AbstractFieldValidator()
           
 
Method Summary
 SourceBean getConfig()
          The getter method for the configuration of the field Validator
 void init(SourceBean config)
          Initialize The validator with his configuration
 void saveTypedValue(SourceBean serviceRequest, java.lang.String name, java.lang.Object value)
          Save in the Typed Service Request the attribute with name and value Subclasses must use this method to save the field converted with typed value and alias
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface it.eng.spago.validation.FieldValidatorIFace
validateField
 

Field Detail

TYPED_SERVICE_REQUEST

public static final java.lang.String TYPED_SERVICE_REQUEST
The Key of the element that represent the Typed service Request

See Also:
Constant Field Values
Constructor Detail

AbstractFieldValidator

public AbstractFieldValidator()
Method Detail

saveTypedValue

public void saveTypedValue(SourceBean serviceRequest,
                           java.lang.String name,
                           java.lang.Object value)
Save in the Typed Service Request the attribute with name and value Subclasses must use this method to save the field converted with typed value and alias

Parameters:
serviceRequest - The Spago Service Request
name - The name of the attribute to store
value - The value to store

getConfig

public SourceBean getConfig()
The getter method for the configuration of the field Validator

Specified by:
getConfig in interface FieldValidatorIFace
See Also:
FieldValidatorIFace.getConfig()

init

public void init(SourceBean config)
Initialize The validator with his configuration

Specified by:
init in interface FieldValidatorIFace
See Also:
FieldValidatorIFace.init(it.eng.spago.base.SourceBean)