Save This Page
Home » xwork-2.1.1-src » com.opensymphony.xwork2.validator.validators » [javadoc | source]
com.opensymphony.xwork2.validator.validators
public class: ConversionErrorFieldValidator [javadoc | source]
java.lang.Object
   com.opensymphony.xwork2.validator.validators.ValidatorSupport
      com.opensymphony.xwork2.validator.validators.FieldValidatorSupport
         com.opensymphony.xwork2.validator.validators.RepopulateConversionErrorFieldValidatorSupport
            com.opensymphony.xwork2.validator.validators.ConversionErrorFieldValidator

All Implemented Interfaces:
    FieldValidator, ShortCircuitableValidator, Validator

Field Validator that checks if a conversion error occured for this field.

<!-- Plain Validator Syntax -->
<validator type="conversion">
<param name="fieldName">myField</param>
<message>Conversion Error Occurred</message>
</validator>

<!-- Field Validator Syntax -->
<field name="myField">
<field-validator type="conversion">
<message>Conversion Error Occurred</message>
</field-validator>
</field>
Fields inherited from com.opensymphony.xwork2.validator.validators.ValidatorSupport:
log,  defaultMessage,  messageKey
Method from com.opensymphony.xwork2.validator.validators.ConversionErrorFieldValidator Summary:
doValidate
Methods from com.opensymphony.xwork2.validator.validators.RepopulateConversionErrorFieldValidatorSupport:
doValidate,   getRepopulateField,   repopulateField,   setRepopulateField,   validate
Methods from com.opensymphony.xwork2.validator.validators.FieldValidatorSupport:
getFieldName,   getValidatorType,   setFieldName,   setValidatorType
Methods from com.opensymphony.xwork2.validator.validators.ValidatorSupport:
addActionError,   addFieldError,   conditionalParse,   getDefaultMessage,   getFieldValue,   getMessage,   getMessageKey,   getParse,   getValidatorContext,   getValidatorType,   isShortCircuit,   setDefaultMessage,   setMessageKey,   setParse,   setShortCircuit,   setValidatorContext,   setValidatorType,   setValueStack
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.opensymphony.xwork2.validator.validators.ConversionErrorFieldValidator Detail:
 public  void doValidate(Object object) throws ValidationException 
    The validation implementation must guarantee that setValidatorContext will be called with a non-null ValidatorContext before validate is called.