Anonymous avatar Anonymous committed 4bd8c1c

Fix example formatting (looks bad on the wiki)

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@1585 e221344d-f017-0410-9bd5-d282ab1896d7

Comments (0)

Files changed (1)

src/java/com/opensymphony/xwork2/validator/validators/StringLengthFieldValidator.java

  * 
  * <pre>
  * <!--START SNIPPET: example -->
- *		&lt;validators&gt;
- *          &lt;!-- Plain Validator Syntax --&gt;
- * 			&lt;validator type="stringlength"&gt;
- * 				&lt;param name="fieldName"&gt;myPurchaseCode&lt;/param&gt;
- * 				&lt;param name="minLength"&gt;10&lt;/param&gt;
- *              &lt;param name="maxLength"&gt;10&lt;/param&gt;
- *              &lt;param name="trim"&gt;true&lt;/param&gt;
- *              &lt;message&gt;Your purchase code needs to be 10 characters long&lt;/message&gt;		
- *          &lt;/validator&gt;
+ *      &lt;validators&gt;
+ *           &lt;!-- Plain Validator Syntax --&gt;
+ *           &lt;validator type="stringlength"&gt;
+ *                &lt;param name="fieldName"&gt;myPurchaseCode&lt;/param&gt;
+ *                &lt;param name="minLength"&gt;10&lt;/param&gt;
+ *                &lt;param name="maxLength"&gt;10&lt;/param&gt;
+ *                &lt;param name="trim"&gt;true&lt;/param&gt;
+ *                &lt;message&gt;Your purchase code needs to be 10 characters long&lt;/message&gt;		
+ *            &lt;/validator&gt;
  * 
- * 			&lt;!-- Field Validator Syntax --&gt;
- * 			&lt;field name="myPurchaseCode"&gt;
- * 				&lt;param name="minLength"&gt;10&lt;/param&gt;
- *              &lt;param name="maxLength&gt;10&lt;/param&gt;
- *              &lt;param name="trim"&gt;true&lt;/param&gt;
- *              &lt;message&gt;Your purchase code needs to be 10 characters long&lt;/message&gt;
- * 			&lt;/field-name&gt;
+ *            &lt;!-- Field Validator Syntax --&gt;
+ *            &lt;field name="myPurchaseCode"&gt;
+ *                &lt;param name="minLength"&gt;10&lt;/param&gt;
+ *                &lt;param name="maxLength&gt;10&lt;/param&gt;
+ *                &lt;param name="trim"&gt;true&lt;/param&gt;
+ *                &lt;message&gt;Your purchase code needs to be 10 characters long&lt;/message&gt;
+ *            &lt;/field-name&gt;
  *      &lt;/validators&gt;
  * <!-- END SNIPPET: example -->
  * </pre>
         doTrim = trim;
     }
 
-    public boolean getTrim() {
+    public boolen getTrim() {
         return doTrim;
     }
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.