Removed DOCUMENT ME comments that were generated and applied source code
[utils] / security / src / main / java / org / wamblee / usermgt / RegexpNameValidator.java
index 40f9e669804589187e074878897d4bc4c9196cf3..ea9389f2d4a9f3235805985eb21af659b3b10b85 100644 (file)
@@ -17,10 +17,9 @@ package org.wamblee.usermgt;
 
 import org.wamblee.usermgt.UserMgtException.Reason;
 
-
 /**
  * Validation of names based on a regular expression.
- *
+ * 
  * @author Erik Brakkee
  */
 public class RegexpNameValidator implements NameValidator {
@@ -30,8 +29,7 @@ public class RegexpNameValidator implements NameValidator {
     public static final String ID_PATTERN = "[a-zA-Z]+[a-zA-Z0-9]*";
 
     /**
-     * Convenience pattern for a password consisting of at least 6
-     * characters.
+     * Convenience pattern for a password consisting of at least 6 characters.
      */
     public static final String PASSWORD_PATTERN = ".{6}.*";
 
@@ -50,39 +48,42 @@ public class RegexpNameValidator implements NameValidator {
      */
     private String message;
 
-/**
-     * Validates a regular expression. 
-     * @param aPattern Pattern that names must comply to. 
-     * @param aReason Reason to report when validation fails. 
-     * @param aMessage Message to report. 
+    /**
+     * Validates a regular expression.
+     * 
+     * @param aPattern
+     *            Pattern that names must comply to.
+     * @param aReason
+     *            Reason to report when validation fails.
+     * @param aMessage
+     *            Message to report.
      */
     public RegexpNameValidator(String aPattern, Reason aReason, String aMessage) {
-        pattern     = aPattern;
-        reason      = aReason;
-        message     = aMessage;
+        pattern = aPattern;
+        reason = aReason;
+        message = aMessage;
     }
 
-/**
-     * Convenience constructor with all string parameters. Useful for configuration 
-     * in Spring. 
-     * @param aPattern Pattern to use.
-     * @param aReason Reason. 
-     * @param aMessage Message. 
+    /**
+     * Convenience constructor with all string parameters. Useful for
+     * configuration in Spring.
+     * 
+     * @param aPattern
+     *            Pattern to use.
+     * @param aReason
+     *            Reason.
+     * @param aMessage
+     *            Message.
      */
     public RegexpNameValidator(String aPattern, String aReason, String aMessage) {
         this(aPattern, Reason.valueOf(aReason), aMessage);
     }
 
-    /* (non-Javadoc)
+    /*
+     * (non-Javadoc)
+     * 
      * @see org.wamblee.usermgt.NameValidator#validate(java.lang.String)
      */
-    /**
-     * DOCUMENT ME!
-     *
-     * @param aName DOCUMENT ME!
-     *
-     * @throws UserMgtException DOCUMENT ME!
-     */
     public void validate(String aName) throws UserMgtException {
         if (!aName.matches(pattern)) {
             throw new UserMgtException(reason, message);