org.apache.maven.model.DependencyManagement 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;
/**
* Section for management of default dependency information for use
* in a group of
* POMs.
*
* @version $Revision$ $Date$
*/
public class DependencyManagement
implements java.io.Serializable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* Field dependencies.
*/
private java.util.List dependencies;
//-----------/
//- Methods -/
//-----------/
/**
* Method addDependency.
*
* @param dependency
*/
public void addDependency( Dependency dependency )
{
if ( !(dependency instanceof Dependency) )
{
throw new ClassCastException( "DependencyManagement.addDependencies(dependency) parameter must be instanceof " + Dependency.class.getName() );
}
getDependencies().add( dependency );
} //-- void addDependency( Dependency )
/**
* 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()
/**
* Method removeDependency.
*
* @param dependency
*/
public void removeDependency( Dependency dependency )
{
if ( !(dependency instanceof Dependency) )
{
throw new ClassCastException( "DependencyManagement.removeDependencies(dependency) parameter must be instanceof " + Dependency.class.getName() );
}
getDependencies().remove( dependency );
} //-- void removeDependency( Dependency )
/**
* Set the dependencies specified here are not used until they
* are referenced in a
* POM within the group. This allows the
* specification of a "standard" version for a
* particular dependency.
*
* @param dependencies
*/
public void setDependencies( java.util.List dependencies )
{
this.dependencies = dependencies;
} //-- void setDependencies( java.util.List )
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy