Commits

rainerh  committed 3a65570

Enable per-method validations for annotations
o fixed interceptor parameter setter
Issue Number: XW-470
Submitted by: David Rupp

git-svn-id: http://svn.opensymphony.com/svn/xwork/branches/2.0@1362e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits 719fb79
  • Branches 2.0, xwork_2_0_7

Comments (0)

Files changed (1)

File src/java/com/opensymphony/xwork2/validator/ValidationInterceptor.java

 
     private boolean validateAnnotatedMethodOnly;
 
-
     public boolean isValidateAnnotatedMethodOnly() {
         return validateAnnotatedMethodOnly;
     }
 
-    public void setValidateAnnotatedMethodOnly(boolean validateAnnotatedMethodOnly) {
-        this.validateAnnotatedMethodOnly = validateAnnotatedMethodOnly;
+    /**
+     * Determine if <code>validate()</code> should always be called or only per annotated method.
+     * Default to "false".
+     *
+     * @param validateAnnotatedMethodOnly
+     */
+    public void setValidateAnnotatedMethodOnly(String validateAnnotatedMethodOnly) {
+        this.validateAnnotatedMethodOnly = Boolean.parseBoolean(validateAnnotatedMethodOnly);
     }
 
     /**