com.opensymphony.xwork.validator.validators
Class FieldValidatorSupport

java.lang.Object
  extended bycom.opensymphony.xwork.validator.validators.ValidatorSupport
      extended bycom.opensymphony.xwork.validator.validators.FieldValidatorSupport
All Implemented Interfaces:
FieldValidator, ShortCircuitableValidator, Validator
Direct Known Subclasses:
AbstractRangeValidator, ConversionErrorFieldValidator, EmailValidator, FieldExpressionValidator, RequiredFieldValidator, RequiredStringValidator, StringLengthFieldValidator, URLValidator, VisitorFieldValidator

public abstract class FieldValidatorSupport
extends ValidatorSupport
implements FieldValidator

FieldValidatorSupport Created : Jan 20, 2003 4:08:40 PM

Author:
Jason Carreira

Field Summary
 
Fields inherited from class com.opensymphony.xwork.validator.validators.ValidatorSupport
defaultMessage, log, messageKey
 
Constructor Summary
FieldValidatorSupport()
           
 
Method Summary
 String getFieldName()
           
 void setFieldName(String fieldName)
          Sets the field name to validate with this FieldValidator
 
Methods inherited from class com.opensymphony.xwork.validator.validators.ValidatorSupport
addActionError, addFieldError, getDefaultMessage, getFieldValue, getMessage, getMessageKey, getValidatorContext, isShortCircuit, setDefaultMessage, setMessageKey, setShortCircuit, setValidatorContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.opensymphony.xwork.validator.Validator
getDefaultMessage, getMessage, getMessageKey, getValidatorContext, setDefaultMessage, setMessageKey, setValidatorContext, validate
 

Constructor Detail

FieldValidatorSupport

public FieldValidatorSupport()
Method Detail

setFieldName

public void setFieldName(String fieldName)
Description copied from interface: FieldValidator
Sets the field name to validate with this FieldValidator

Specified by:
setFieldName in interface FieldValidator
Parameters:
fieldName -

getFieldName

public String getFieldName()
Specified by:
getFieldName in interface FieldValidator
Returns:
the field name to be validated

XWork Project Page