org.apache.maven.model.ModelBase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of virtdata-lib-realer Show documentation
Show all versions of virtdata-lib-realer Show documentation
With inspiration from other libraries
/*
=================== DO NOT EDIT THIS FILE ====================
Generated by Modello 1.0.1 on 2009-08-06 15:13:09,
any modifications will be overwritten.
==============================================================
*/
package org.apache.maven.model;
/**
*
*
* Base class for the Model
and the
* Profile
objects.
*
*
*
* @version $Revision$ $Date$
*/
public class ModelBase
implements java.io.Serializable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* Distribution information for a project that enables
* deployment of the site
* and artifacts to remote web servers and
* repositories respectively.
*/
private DistributionManagement distributionManagement;
/**
* Field modules.
*/
private java.util.List modules;
/**
* Field repositories.
*/
private java.util.List repositories;
/**
* Field pluginRepositories.
*/
private java.util.List pluginRepositories;
/**
* Field dependencies.
*/
private java.util.List dependencies;
/**
*
*
* Deprecated. Now ignored by Maven.
*
*
*/
private Object reports;
/**
*
*
* 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.
*
*
*/
private Reporting reporting;
/**
* 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.
*/
private DependencyManagement dependencyManagement;
/**
* Field properties.
*/
private java.util.Properties properties;
//-----------/
//- Methods -/
//-----------/
/**
* Method addDependency.
*
* @param dependency
*/
public void addDependency( Dependency dependency )
{
if ( !(dependency instanceof Dependency) )
{
throw new ClassCastException( "ModelBase.addDependencies(dependency) parameter must be instanceof " + Dependency.class.getName() );
}
getDependencies().add( dependency );
} //-- void addDependency( Dependency )
/**
* Method addModule.
*
* @param string
*/
public void addModule( String string )
{
if ( !(string instanceof String) )
{
throw new ClassCastException( "ModelBase.addModules(string) parameter must be instanceof " + String.class.getName() );
}
getModules().add( string );
} //-- void addModule( String )
/**
* Method addPluginRepository.
*
* @param repository
*/
public void addPluginRepository( Repository repository )
{
if ( !(repository instanceof Repository) )
{
throw new ClassCastException( "ModelBase.addPluginRepositories(repository) parameter must be instanceof " + Repository.class.getName() );
}
getPluginRepositories().add( repository );
} //-- void addPluginRepository( Repository )
/**
* Method addProperty.
*
* @param key
* @param value
*/
public void addProperty( String key, String value )
{
getProperties().put( key, value );
} //-- void addProperty( String, String )
/**
* Method addRepository.
*
* @param repository
*/
public void addRepository( Repository repository )
{
if ( !(repository instanceof Repository) )
{
throw new ClassCastException( "ModelBase.addRepositories(repository) parameter must be instanceof " + Repository.class.getName() );
}
getRepositories().add( repository );
} //-- void addRepository( Repository )
/**
* Method getDependencies.
*
* @return List
*/
public java.util.List getDependencies()
{
if ( this.dependencies == null )
{
this.dependencies = new java.util.ArrayList();
}
return this.dependencies;
} //-- java.util.List getDependencies()
/**
* 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.
*
* @return DependencyManagement
*/
public DependencyManagement getDependencyManagement()
{
return this.dependencyManagement;
} //-- DependencyManagement getDependencyManagement()
/**
* Get distribution information for a project that enables
* deployment of the site
* and artifacts to remote web servers and
* repositories respectively.
*
* @return DistributionManagement
*/
public DistributionManagement getDistributionManagement()
{
return this.distributionManagement;
} //-- DistributionManagement getDistributionManagement()
/**
* Method getModules.
*
* @return List
*/
public java.util.List getModules()
{
if ( this.modules == null )
{
this.modules = new java.util.ArrayList();
}
return this.modules;
} //-- java.util.List getModules()
/**
* Method getPluginRepositories.
*
* @return List
*/
public java.util.List getPluginRepositories()
{
if ( this.pluginRepositories == null )
{
this.pluginRepositories = new java.util.ArrayList();
}
return this.pluginRepositories;
} //-- java.util.List getPluginRepositories()
/**
* Method getProperties.
*
* @return Properties
*/
public java.util.Properties getProperties()
{
if ( this.properties == null )
{
this.properties = new java.util.Properties();
}
return this.properties;
} //-- java.util.Properties getProperties()
/**
* 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.
*
* @return Reporting
*/
public Reporting getReporting()
{
return this.reporting;
} //-- Reporting getReporting()
/**
* Get Deprecated. Now ignored by Maven.
*
* @return Object
*/
public Object getReports()
{
return this.reports;
} //-- Object getReports()
/**
* Method getRepositories.
*
* @return List
*/
public java.util.List getRepositories()
{
if ( this.repositories == null )
{
this.repositories = new java.util.ArrayList();
}
return this.repositories;
} //-- java.util.List getRepositories()
/**
* Method removeDependency.
*
* @param dependency
*/
public void removeDependency( Dependency dependency )
{
if ( !(dependency instanceof Dependency) )
{
throw new ClassCastException( "ModelBase.removeDependencies(dependency) parameter must be instanceof " + Dependency.class.getName() );
}
getDependencies().remove( dependency );
} //-- void removeDependency( Dependency )
/**
* Method removeModule.
*
* @param string
*/
public void removeModule( String string )
{
if ( !(string instanceof String) )
{
throw new ClassCastException( "ModelBase.removeModules(string) parameter must be instanceof " + String.class.getName() );
}
getModules().remove( string );
} //-- void removeModule( String )
/**
* Method removePluginRepository.
*
* @param repository
*/
public void removePluginRepository( Repository repository )
{
if ( !(repository instanceof Repository) )
{
throw new ClassCastException( "ModelBase.removePluginRepositories(repository) parameter must be instanceof " + Repository.class.getName() );
}
getPluginRepositories().remove( repository );
} //-- void removePluginRepository( Repository )
/**
* Method removeRepository.
*
* @param repository
*/
public void removeRepository( Repository repository )
{
if ( !(repository instanceof Repository) )
{
throw new ClassCastException( "ModelBase.removeRepositories(repository) parameter must be instanceof " + Repository.class.getName() );
}
getRepositories().remove( repository );
} //-- void removeRepository( Repository )
/**
* 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.
*
* @param dependencies
*/
public void setDependencies( java.util.List dependencies )
{
this.dependencies = dependencies;
} //-- void setDependencies( java.util.List )
/**
* 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.
*
* @param dependencyManagement
*/
public void setDependencyManagement( DependencyManagement dependencyManagement )
{
this.dependencyManagement = dependencyManagement;
} //-- void setDependencyManagement( DependencyManagement )
/**
* Set distribution information for a project that enables
* deployment of the site
* and artifacts to remote web servers and
* repositories respectively.
*
* @param distributionManagement
*/
public void setDistributionManagement( DistributionManagement distributionManagement )
{
this.distributionManagement = distributionManagement;
} //-- void setDistributionManagement( DistributionManagement )
/**
* 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.
*
* @param modules
*/
public void setModules( java.util.List modules )
{
this.modules = modules;
} //-- void setModules( java.util.List )
/**
* Set the lists of the remote repositories for discovering
* plugins for builds and
* reports.
*
* @param pluginRepositories
*/
public void setPluginRepositories( java.util.List pluginRepositories )
{
this.pluginRepositories = pluginRepositories;
} //-- void setPluginRepositories( java.util.List )
/**
* 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>
.
*
* @param properties
*/
public void setProperties( java.util.Properties properties )
{
this.properties = properties;
} //-- void setProperties( java.util.Properties )
/**
* 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.
*
* @param reporting
*/
public void setReporting( Reporting reporting )
{
this.reporting = reporting;
} //-- void setReporting( Reporting )
/**
* Set Deprecated. Now ignored by Maven.
*
* @param reports
*/
public void setReports( Object reports )
{
this.reports = reports;
} //-- void setReports( Object )
/**
* Set the lists of the remote repositories for discovering
* dependencies and
* extensions.
*
* @param repositories
*/
public void setRepositories( java.util.List repositories )
{
this.repositories = repositories;
} //-- void setRepositories( java.util.List )
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy