org.apache.maven
Class ContentValidator

java.lang.Object
  extended byorg.apache.maven.ContentValidator

public class ContentValidator
extends Object

Version:
$Id: ContentValidator.java 170200 2005-05-15 06:24:19Z brett $
Author:
Ben Walding

Constructor Summary
ContentValidator()
           
 
Method Summary
protected  void addNotice(ContentNotice notice)
          Adds a single notice to the list
protected  void addNotice(String level, String section, String message)
          Adds a single notice to the list
 List execute()
          Runs the validation routine and returns any notices
 org.apache.maven.project.Project getProject()
           
 void setProject(org.apache.maven.project.Project project)
          Sets the project.
protected  void validateDevelopers()
          Validates the developers element
protected  void validateLicenses()
          Validates the licenses element
protected  void validateProject()
          Validates the top level project item
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentValidator

public ContentValidator()
Method Detail

getProject

public org.apache.maven.project.Project getProject()
Returns:
Project

setProject

public void setProject(org.apache.maven.project.Project project)
Sets the project.

Parameters:
project - The project to set

addNotice

protected void addNotice(ContentNotice notice)
Adds a single notice to the list

Parameters:
notice - the notice to add

addNotice

protected void addNotice(String level,
                         String section,
                         String message)
Adds a single notice to the list

Parameters:
level -
section -
message -

execute

public List execute()
Runs the validation routine and returns any notices

Returns:
List

validateProject

protected void validateProject()
Validates the top level project item


validateLicenses

protected void validateLicenses()
Validates the licenses element


validateDevelopers

protected void validateDevelopers()
Validates the developers element



Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.