|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.xwork2.validator.validators.ValidatorSupport
com.opensymphony.xwork2.validator.validators.FieldValidatorSupport
public abstract class FieldValidatorSupport
Base class for field validators.
Field Summary |
---|
Fields inherited from class com.opensymphony.xwork2.validator.validators.ValidatorSupport |
---|
defaultMessage, log, messageKey |
Constructor Summary | |
---|---|
FieldValidatorSupport()
|
Method Summary | |
---|---|
java.lang.String |
getFieldName()
Gets the field name to be validated |
java.lang.String |
getValidatorType()
Gets the vaildator type used (see class javadoc). |
void |
setFieldName(java.lang.String fieldName)
Sets the field name to validate with this FieldValidator |
void |
setValidatorType(java.lang.String type)
Sets the validator type to use (see class javadoc). |
Methods inherited from class com.opensymphony.xwork2.validator.validators.ValidatorSupport |
---|
addActionError, addFieldError, conditionalParse, getDefaultMessage, getFieldValue, getMessage, getMessageKey, getMessageParameters, getParse, getValidatorContext, isShortCircuit, setDefaultMessage, setMessageKey, setMessageParameters, setParse, setShortCircuit, setValidatorContext, setValueStack |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.opensymphony.xwork2.validator.Validator |
---|
getDefaultMessage, getMessage, getMessageKey, getMessageParameters, getValidatorContext, setDefaultMessage, setMessageKey, setMessageParameters, setValidatorContext, setValueStack, validate |
Constructor Detail |
---|
public FieldValidatorSupport()
Method Detail |
---|
public void setFieldName(java.lang.String fieldName)
FieldValidator
setFieldName
in interface FieldValidator
fieldName
- the field namepublic java.lang.String getFieldName()
FieldValidator
getFieldName
in interface FieldValidator
public void setValidatorType(java.lang.String type)
Validator
setValidatorType
in interface Validator
setValidatorType
in class ValidatorSupport
type
- the type to use.public java.lang.String getValidatorType()
Validator
getValidatorType
in interface Validator
getValidatorType
in class ValidatorSupport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |