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, setValueStack
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaultMessage, getMessage, getMessageKey, getMessageParameters, getValidatorContext, setDefaultMessage, setMessageKey, setMessageParameters, setValidatorContext, setValueStack, validate
protected String fieldName
protected String type
protected Object currentValue
public void setFieldName(String fieldName)
FieldValidator
setFieldName
in interface FieldValidator
fieldName
- the field namepublic String getFieldName()
FieldValidator
getFieldName
in interface FieldValidator
public void setValidatorType(String type)
Validator
setValidatorType
in interface Validator
setValidatorType
in class ValidatorSupport
type
- the type to use.public String getValidatorType()
Validator
getValidatorType
in interface Validator
getValidatorType
in class ValidatorSupport
public Object getCurrentValue()
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.