You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by bw...@apache.org on 2003/02/09 14:35:59 UTC

cvs commit: jakarta-turbine-maven/src/plugins-build/pom/src/main/org/apache/maven ContentValidator.java

bwalding    2003/02/09 05:35:59

  Modified:    src/plugins-build/pom/src/main/org/apache/maven
                        ContentValidator.java
  Log:
  Added javadoc
  
  Revision  Changes    Path
  1.2       +28 -3     jakarta-turbine-maven/src/plugins-build/pom/src/main/org/apache/maven/ContentValidator.java
  
  Index: ContentValidator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-maven/src/plugins-build/pom/src/main/org/apache/maven/ContentValidator.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ContentValidator.java	9 Feb 2003 13:26:40 -0000	1.1
  +++ ContentValidator.java	9 Feb 2003 13:35:59 -0000	1.2
  @@ -67,11 +67,13 @@
    */
   public class ContentValidator
   {
  -  List notices;
  -  Project project;
  +  private List notices;
  +  private Project project;
  +  
     public ContentValidator()
     {
     }
  +  
     /**
      * @return Project
      */
  @@ -89,16 +91,30 @@
       this.project = project;
     }
   
  +  /**
  +   * Adds a single notice to the list
  +   * @param notice the notice to add
  +   */
     protected void addNotice(ContentNotice notice)
     {
       notices.add(notice);
     }
   
  +  /**
  +   * Adds a single notice to the list
  +   * @param level
  +   * @param section
  +   * @param message
  +   */
     protected void addNotice(String level, String section, String message)
     {
       addNotice(new ContentNotice(level, section, message));
     }
   
  +  /**
  +   * Runs the validation routine and returns any notices
  +   * @return List
  +   */
     public List execute()
     {
       notices = new ArrayList();
  @@ -106,6 +122,9 @@
       return notices;
     }
   
  +  /**
  +   * Validates the top level project item
  +   */
     protected void validateProject()
     {
       if (project.getLogo() == null || project.getLogo().trim().length() == 0)
  @@ -116,6 +135,9 @@
       validateLicenses();
     }
   
  +  /**
  +   * Validates the licenses element
  +   */
     protected void validateLicenses()
     {
       if (project.getLicenses().size() == 0)
  @@ -127,6 +149,9 @@
       }
     }
   
  +  /**
  +   * Validates the developers element
  +   */
     protected void validateDevelopers()
     {
     }