org.apache.maven.model
Class ModelBase

java.lang.Object
  extended by org.apache.maven.model.ModelBase
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Model, Profile

public class ModelBase
extends java.lang.Object
implements java.io.Serializable

Base class for the Model and the Profile objects.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
ModelBase()
           
 
Method Summary
 void addDependency(Dependency dependency)
          Method addDependency
 void addModule(java.lang.String string)
          Method addModule
 void addPluginRepository(Repository repository)
          Method addPluginRepository
 void addProperty(java.lang.String key, java.lang.String value)
          Method addProperty
 void addRepository(Repository repository)
          Method addRepository
 java.util.List getDependencies()
          Method getDependencies
 DependencyManagement getDependencyManagement()
          Get Default dependency information for projects that inherit from this one.
 DistributionManagement getDistributionManagement()
          Get Distribution information for a project that enables deployment of the site and artifacts to remote web servers and repositories respectively.
 java.lang.String getModelEncoding()
           
 java.util.List getModules()
          Method getModules
 java.util.List getPluginRepositories()
          Method getPluginRepositories
 java.util.Properties getProperties()
          Method getProperties
 Reporting getReporting()
          Get This element includes the specification of report plugins to use to generate the reports on the Maven-generated site.
 java.lang.Object getReports()
          Get Deprecated.
 java.util.List getRepositories()
          Method getRepositories
 void removeDependency(Dependency dependency)
          Method removeDependency
 void removeModule(java.lang.String string)
          Method removeModule
 void removePluginRepository(Repository repository)
          Method removePluginRepository
 void removeRepository(Repository repository)
          Method removeRepository
 void setDependencies(java.util.List dependencies)
          Set This element describes all of the dependencies associated with a project.
 void setDependencyManagement(DependencyManagement dependencyManagement)
          Set Default dependency information for projects that inherit from this one.
 void setDistributionManagement(DistributionManagement distributionManagement)
          Set Distribution information for a project that enables deployment of the site and artifacts to remote web servers and repositories respectively.
 void setModelEncoding(java.lang.String modelEncoding)
           
 void setModules(java.util.List modules)
          Set The modules (sometimes called subprojects) to build as a part of this project.
 void setPluginRepositories(java.util.List pluginRepositories)
          Set The lists of the remote repositories for discovering plugins for builds and reports.
 void setProperties(java.util.Properties properties)
          Set Properties that can be used throughout the POM as a substitution, and are used as filters in resources if enabled.
 void setReporting(Reporting reporting)
          Set This element includes the specification of report plugins to use to generate the reports on the Maven-generated site.
 void setReports(java.lang.Object reports)
          Set Deprecated.
 void setRepositories(java.util.List repositories)
          Set The lists of the remote repositories for discovering dependencies and extensions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelBase

public ModelBase()
Method Detail

addDependency

public void addDependency(Dependency dependency)
Method addDependency

Parameters:
dependency -

addModule

public void addModule(java.lang.String string)
Method addModule

Parameters:
string -

addPluginRepository

public void addPluginRepository(Repository repository)
Method addPluginRepository

Parameters:
repository -

addProperty

public void addProperty(java.lang.String key,
                        java.lang.String value)
Method addProperty

Parameters:
key -
value -

addRepository

public void addRepository(Repository repository)
Method addRepository

Parameters:
repository -

getDependencies

public java.util.List getDependencies()
Method getDependencies


getDependencyManagement

public DependencyManagement getDependencyManagement()
Get Default dependency information for projects that inherit from this one. The dependencies in this section are not immediately resolved. Instead, when a POM derived from this one declares a dependency described by a matching groupId and artifactId, the version and other values from this section are used for that dependency if they were not already specified.


getDistributionManagement

public DistributionManagement getDistributionManagement()
Get Distribution information for a project that enables deployment of the site and artifacts to remote web servers and repositories respectively.


getModules

public java.util.List getModules()
Method getModules


getPluginRepositories

public java.util.List getPluginRepositories()
Method getPluginRepositories


getProperties

public java.util.Properties getProperties()
Method getProperties


getReporting

public Reporting getReporting()
Get This element includes the specification of report plugins to use to generate the reports on the Maven-generated site. These reports will be run when a user executes mvn site. All of the reports will be included in the navigation bar for browsing.


getReports

public java.lang.Object getReports()
Get Deprecated. Now ignored by Maven.


getRepositories

public java.util.List getRepositories()
Method getRepositories


removeDependency

public void removeDependency(Dependency dependency)
Method removeDependency

Parameters:
dependency -

removeModule

public void removeModule(java.lang.String string)
Method removeModule

Parameters:
string -

removePluginRepository

public void removePluginRepository(Repository repository)
Method removePluginRepository

Parameters:
repository -

removeRepository

public void removeRepository(Repository repository)
Method removeRepository

Parameters:
repository -

setDependencies

public void setDependencies(java.util.List dependencies)
Set This element describes all of the dependencies associated with a project. These dependencies are used to construct a classpath for your project during the build process. They are automatically downloaded from the repositories defined in this project. See the dependency mechanism for more information.

Parameters:
dependencies -

setDependencyManagement

public void setDependencyManagement(DependencyManagement dependencyManagement)
Set Default dependency information for projects that inherit from this one. The dependencies in this section are not immediately resolved. Instead, when a POM derived from this one declares a dependency described by a matching groupId and artifactId, the version and other values from this section are used for that dependency if they were not already specified.

Parameters:
dependencyManagement -

setDistributionManagement

public void setDistributionManagement(DistributionManagement distributionManagement)
Set Distribution information for a project that enables deployment of the site and artifacts to remote web servers and repositories respectively.

Parameters:
distributionManagement -

setModules

public void setModules(java.util.List modules)
Set The modules (sometimes called subprojects) to build as a part of this project. Each module listed is a relative path to the directory containing the module.

Parameters:
modules -

setPluginRepositories

public void setPluginRepositories(java.util.List pluginRepositories)
Set The lists of the remote repositories for discovering plugins for builds and reports.

Parameters:
pluginRepositories -

setProperties

public void setProperties(java.util.Properties properties)
Set Properties that can be used throughout the POM as a substitution, and are used as filters in resources if enabled. The format is <name>value</name>.

Parameters:
properties -

setReporting

public void setReporting(Reporting reporting)
Set This element includes the specification of report plugins to use to generate the reports on the Maven-generated site. These reports will be run when a user executes mvn site. All of the reports will be included in the navigation bar for browsing.

Parameters:
reporting -

setReports

public void setReports(java.lang.Object reports)
Set Deprecated. Now ignored by Maven.

Parameters:
reports -

setRepositories

public void setRepositories(java.util.List repositories)
Set The lists of the remote repositories for discovering dependencies and extensions.

Parameters:
repositories -

setModelEncoding

public void setModelEncoding(java.lang.String modelEncoding)

getModelEncoding

public java.lang.String getModelEncoding()


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