public class ConversionErrorFieldValidator extends RepopulateConversionErrorFieldValidatorSupport
<!-- 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>
currentValue, fieldName, type
defaultMessage, EMPTY_STRING, messageKey, stack, textProviderFactory
Constructor and Description |
---|
ConversionErrorFieldValidator() |
Modifier and Type | Method and Description |
---|---|
void |
doValidate(Object object)
The validation implementation must guarantee that setValidatorContext will
be called with a non-null ValidatorContext before validate is called.
|
escape, isRepopulateField, repopulateField, setRepopulateField, validate
getCurrentValue, getFieldName, getValidatorType, setFieldName, setValidatorType
addActionError, addFieldError, getDefaultMessage, getFieldValue, getMessage, getMessageKey, getMessageParameters, getValidatorContext, isShortCircuit, parse, setDefaultMessage, setMessageKey, setMessageParameters, setShortCircuit, setTextProviderFactory, setValidatorContext, setValueStack
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaultMessage, getMessage, getMessageKey, getMessageParameters, getValidatorContext, setDefaultMessage, setMessageKey, setMessageParameters, setValidatorContext, setValueStack
public void doValidate(Object object) throws ValidationException
doValidate
in class RepopulateConversionErrorFieldValidatorSupport
object
- the object to be validatedValidationException
- in case of validation problemsCopyright © 2000–2020 Apache Software Foundation. All rights reserved.