Class StringLengthValidator
- java.lang.Object
-
- com.opensymphony.xwork.validator.validators.ValidatorSupport
-
- com.opensymphony.xwork.validator.validators.FieldValidatorSupport
-
- com.atlassian.confluence.util.misc.StringLengthValidator
-
- All Implemented Interfaces:
com.opensymphony.xwork.validator.FieldValidator,com.opensymphony.xwork.validator.ShortCircuitableValidator,com.opensymphony.xwork.validator.Validator
public class StringLengthValidator extends com.opensymphony.xwork.validator.validators.FieldValidatorSupport
-
-
Constructor Summary
Constructors Constructor Description StringLengthValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxLength()intgetMinLength()voidsetMaxLength(int maxLength)voidsetMinLength(int minLength)voidvalidate(Object object)-
Methods inherited from class com.opensymphony.xwork.validator.validators.FieldValidatorSupport
getFieldName, setFieldName
-
Methods inherited from class com.opensymphony.xwork.validator.validators.ValidatorSupport
addActionError, addFieldError, getDefaultMessage, getFieldValue, getMessage, getMessageKey, getValidatorContext, isShortCircuit, setDefaultMessage, setMessageKey, setShortCircuit, setValidatorContext
-
-
-
-
Method Detail
-
validate
public void validate(Object object) throws com.opensymphony.xwork.validator.ValidationException
- Throws:
com.opensymphony.xwork.validator.ValidationException
-
getMaxLength
public int getMaxLength()
-
setMaxLength
public void setMaxLength(int maxLength)
-
getMinLength
public int getMinLength()
-
setMinLength
public void setMinLength(int minLength)
-
-