Save This Page
Home » xwork-2.1.1-src » com.opensymphony.xwork2.validator.validators » [javadoc | source]
com.opensymphony.xwork2.validator.validators
public class: ExpressionValidator [javadoc | source]
java.lang.Object
   com.opensymphony.xwork2.validator.validators.ValidatorSupport
      com.opensymphony.xwork2.validator.validators.ExpressionValidator

All Implemented Interfaces:
    ShortCircuitableValidator, Validator

A Non-Field Level validator that validates based on regular expression supplied.


<validators>
<validator type="expression">
<param name="expression"> .... </param>
<message>Failed to meet Ognl Expression .... </message>
</validator>
</validators>

Fields inherited from com.opensymphony.xwork2.validator.validators.ValidatorSupport:
log,  defaultMessage,  messageKey
Method from com.opensymphony.xwork2.validator.validators.ExpressionValidator Summary:
getExpression,   setExpression,   validate
Methods from com.opensymphony.xwork2.validator.validators.ValidatorSupport:
addActionError,   addFieldError,   conditionalParse,   getDefaultMessage,   getFieldValue,   getMessage,   getMessageKey,   getParse,   getValidatorContext,   getValidatorType,   isShortCircuit,   setDefaultMessage,   setMessageKey,   setParse,   setShortCircuit,   setValidatorContext,   setValidatorType,   setValueStack
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.opensymphony.xwork2.validator.validators.ExpressionValidator Detail:
 public String getExpression() 
 public  void setExpression(String expression) 
 public  void validate(Object object) throws ValidationException