Package org.apache.struts2.validator
Interface FieldValidator
- All Superinterfaces:
Validator
- All Known Implementing Classes:
ConditionalVisitorFieldValidator
,ConversionErrorFieldValidator
,CreditCardValidator
,DateRangeFieldValidator
,DoubleRangeFieldValidator
,EmailValidator
,FieldExpressionValidator
,FieldValidatorSupport
,Form.FieldVisitorValidatorWrapper
,IntRangeFieldValidator
,LongRangeFieldValidator
,RangeValidatorSupport
,RegexFieldValidator
,RepopulateConversionErrorFieldValidatorSupport
,RequiredFieldValidator
,RequiredStringValidator
,ShortRangeFieldValidator
,StringLengthFieldValidator
,URLValidator
,VisitorFieldValidator
The FieldValidator interface defines the methods to be implemented by FieldValidators.
Which are used by the XWork validation framework to validate Action properties before
executing the Action.
-
Method Summary
Modifier and TypeMethodDescriptionGets the field name to be validatedvoid
setFieldName
(String fieldName) Sets the field name to validate with this FieldValidatorMethods inherited from interface org.apache.struts2.validator.Validator
getDefaultMessage, getMessage, getMessageKey, getMessageParameters, getValidatorContext, getValidatorType, setDefaultMessage, setMessageKey, setMessageParameters, setValidatorContext, setValidatorType, setValueStack, validate
-
Method Details
-
setFieldName
Sets the field name to validate with this FieldValidator- Parameters:
fieldName
- the field name
-
getFieldName
String getFieldName()Gets the field name to be validated- Returns:
- the field name
-