public abstract class FieldValidatorSupport extends ValidatorSupport implements FieldValidator
| Modifier and Type | Field and Description | 
|---|---|
protected Object | 
currentValue  | 
protected String | 
fieldName  | 
protected String | 
type  | 
defaultMessage, EMPTY_STRING, messageKey, stack, textProviderFactory| Constructor and Description | 
|---|
FieldValidatorSupport()  | 
| Modifier and Type | Method and Description | 
|---|---|
Object | 
getCurrentValue()  | 
String | 
getFieldName()
Gets the field name to be validated 
 | 
String | 
getValidatorType()
Gets the validator type used (see class javadoc). 
 | 
void | 
setFieldName(String fieldName)
Sets the field name to validate with this FieldValidator 
 | 
void | 
setValidatorType(String type)
Sets the validator type to use (see class javadoc). 
 | 
addActionError, addFieldError, getDefaultMessage, getFieldValue, getMessage, getMessageKey, getMessageParameters, getValidatorContext, isShortCircuit, parse, setDefaultMessage, setMessageKey, setMessageParameters, setShortCircuit, setTextProviderFactory, setValidatorContext, setValueStackclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultMessage, getMessage, getMessageKey, getMessageParameters, getValidatorContext, setDefaultMessage, setMessageKey, setMessageParameters, setValidatorContext, setValueStack, validateprotected String fieldName
protected String type
protected Object currentValue
public void setFieldName(String fieldName)
FieldValidatorsetFieldName in interface FieldValidatorfieldName - the field namepublic String getFieldName()
FieldValidatorgetFieldName in interface FieldValidatorpublic void setValidatorType(String type)
ValidatorsetValidatorType in interface ValidatorsetValidatorType in class ValidatorSupporttype - the type to use.public String getValidatorType()
ValidatorgetValidatorType in interface ValidatorgetValidatorType in class ValidatorSupportpublic Object getCurrentValue()
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.