org.apache.maven.model
Class DependencyManagement

java.lang.Object
  extended by org.apache.maven.model.DependencyManagement
All Implemented Interfaces:
Serializable, Cloneable, InputLocationTracker

public class DependencyManagement
extends Object
implements Serializable, Cloneable, InputLocationTracker

Section for management of default dependency information for use in a group of POMs.

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

Constructor Summary
DependencyManagement()
           
 
Method Summary
 void addDependency(Dependency dependency)
          Method addDependency.
 DependencyManagement clone()
          Method clone.
 List<Dependency> getDependencies()
          Method getDependencies.
 InputLocation getLocation(Object key)
          Gets the location of the specified field in the input source.
 void removeDependency(Dependency dependency)
          Method removeDependency.
 void setDependencies(List<Dependency> dependencies)
          Set the dependencies specified here are not used until they are referenced in a POM within the group.
 void setLocation(Object key, InputLocation location)
          Sets the location of the specified field.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependencyManagement

public DependencyManagement()
Method Detail

addDependency

public void addDependency(Dependency dependency)
Method addDependency.

Parameters:
dependency -

clone

public DependencyManagement clone()
Method clone.

Overrides:
clone in class Object
Returns:
DependencyManagement

getDependencies

public List<Dependency> getDependencies()
Method getDependencies.

Returns:
List

getLocation

public InputLocation getLocation(Object key)
Description copied from interface: InputLocationTracker
Gets the location of the specified field in the input source.

Specified by:
getLocation in interface InputLocationTracker
Parameters:
key -
Returns:
InputLocation

removeDependency

public void removeDependency(Dependency dependency)
Method removeDependency.

Parameters:
dependency -

setDependencies

public void setDependencies(List<Dependency> dependencies)
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.

Parameters:
dependencies -

setLocation

public void setLocation(Object key,
                        InputLocation location)
Description copied from interface: InputLocationTracker
Sets the location of the specified field.

Specified by:
setLocation in interface InputLocationTracker
Parameters:
key -
location -


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.