commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgra...@apache.org
Subject cvs commit: jakarta-commons/validator/src/share/org/apache/commons/validator ValidatorAction.java
Date Tue, 20 May 2003 02:00:24 GMT
dgraham     2003/05/19 19:00:24

  Modified:    validator/src/share/org/apache/commons/validator
                        ValidatorAction.java
  Log:
  Minor formatting fixes.
  
  Revision  Changes    Path
  1.8       +27 -28    jakarta-commons/validator/src/share/org/apache/commons/validator/ValidatorAction.java
  
  Index: ValidatorAction.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/ValidatorAction.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ValidatorAction.java	18 May 2003 21:31:06 -0000	1.7
  +++ ValidatorAction.java	20 May 2003 02:00:24 -0000	1.8
  @@ -75,10 +75,10 @@
   import org.apache.commons.logging.LogFactory;
   
   /**
  - * <p>Contains the information to dynamically instantiate  and run a validation 
  - * method.  This is the class representation of a pluggable validator that can be defined

  - * in an xml file.
  - * </p>
  + * <p>Contains the information to dynamically create and run a validation 
  + * method.  This is the class representation of a pluggable validator that can be 
  + * defined in an xml file.</p>
  + * 
    * <strong>Note</strong>: The validation method is assumed to be thread safe.
    *
    * @author David Winterfeldt
  @@ -136,14 +136,13 @@
   	private String msg = null;
   
   	/**
  -	 * An optional field to contain the name to be 
  -	 * used if JavaScript is generated.
  +	 * An optional field to contain the name to be used if JavaScript is generated.
   	 */
   	private String jsFunctionName = null;
   
       /**
  -     * An optional field to contain the class path to be
  -     * used to retrieve the JavaScript function.
  +     * An optional field to contain the class path to be used to retrieve the 
  +     * JavaScript function.
        */
       private String jsFunction = null;
   
  @@ -159,10 +158,9 @@
   	 */
   	private Object instance = null;
   
  -
       /**
  -     * Logger
  -    */
  +     * Logger.
  +     */
       private static Log log = LogFactory.getLog(ValidatorAction.class);
   
   	/**
  @@ -234,7 +232,7 @@
   
   	/**
   	 * Gets the method parameters for the method.
  -	*/
  +	 */
   	public List getMethodParamsList() {
   		return Collections.unmodifiableList(methodParameterList);
   	}
  @@ -248,7 +246,7 @@
   
   	/**
   	 * Sets the dependencies of the validator action.
  -	*/
  +	 */
   	public void setDepends(String depends) {
   		this.depends = depends;
   	}
  @@ -316,11 +314,10 @@
           this.jsFunction = jsFunction;
       }
   
  -
   	/**
   	 * Gets the Javascript equivalent of the java class and method 
   	 * associated with this action.
  -	*/
  +	 */
   	public String getJavascript() {
   		return javascript;
   	}
  @@ -338,7 +335,7 @@
   
   	/**
   	 * Gets an instance based on the validator action's classname.
  -	*/
  +	 */
   	public Object getClassnameInstance() {
   		return instance;
   	}
  @@ -362,8 +359,8 @@
         * implementation, the <code>jsFunction</code> property should contain
a fully
         * qualified package and script name, separated by periods, to be loaded from
         * the class loader that created this instance.
  -     *
  -     *  @TODO if the path begins with a '/' the path will be intepreted as absolute, and
remain unchanged.
  +      *
  +      * TODO if the path begins with a '/' the path will be intepreted as absolute, and
remain unchanged.
         * If this fails then it will attempt to treat the path as a file path.
         * It is assumed the script ends with a '.js'.
         */
  @@ -444,16 +441,18 @@
   
       /**
        * Used to generate the javascript name when it is not specified.
  -     * @return
        */
       private String generateJsFunction() {
  -        StringBuffer jsName = new StringBuffer("org.apache.commons.validator.javascript");
  -            jsName.append(".validate");
  -            jsName.append(name.substring(0,1).toUpperCase());
  -        jsName.append(name.substring(1,name.length()));
  +        StringBuffer jsName =
  +            new StringBuffer("org.apache.commons.validator.javascript");
  +            
  +        jsName.append(".validate");
  +        jsName.append(name.substring(0, 1).toUpperCase());
  +        jsName.append(name.substring(1, name.length()));
  +        
           return jsName.toString();
  -
       }
  +    
   	/**
   	 * Creates a <code>FastHashMap</code> for the isDependency method 
   	 * based on depends.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message