com.atlassian.confluence.util.misc
Class StringLengthValidator

java.lang.Object
  extended by com.opensymphony.xwork.validator.validators.ValidatorSupport
      extended by com.opensymphony.xwork.validator.validators.FieldValidatorSupport
          extended by 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


Field Summary
 
Fields inherited from class com.opensymphony.xwork.validator.validators.ValidatorSupport
defaultMessage, log, messageKey
 
Constructor Summary
StringLengthValidator()
           
 
Method Summary
 int getMaxLength()
           
 int getMinLength()
           
 void setMaxLength(int maxLength)
           
 void setMinLength(int minLength)
           
 void validate(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
 
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
 

Constructor Detail

StringLengthValidator

public StringLengthValidator()
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)


Copyright © 2003–2015 Atlassian. All rights reserved.