public class DependencyManagement extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, InputLocationTracker
Modifier and Type | Field and Description |
---|---|
private java.util.List<Dependency> |
dependencies
Field dependencies.
|
private InputLocation |
dependenciesLocation
Field dependenciesLocation.
|
private InputLocation |
location
Field location.
|
private java.util.Map<java.lang.Object,InputLocation> |
locations
Field locations.
|
Constructor and Description |
---|
DependencyManagement() |
Modifier and Type | Method and Description |
---|---|
void |
addDependency(Dependency dependency)
Method addDependency.
|
DependencyManagement |
clone()
Method clone.
|
java.util.List<Dependency> |
getDependencies()
Method getDependencies.
|
InputLocation |
getLocation(java.lang.Object key)
Gets the location of the specified field in the input
source.
|
private InputLocation |
getOtherLocation(java.lang.Object key) |
void |
removeDependency(Dependency dependency)
Method removeDependency.
|
void |
setDependencies(java.util.List<Dependency> dependencies)
Set the dependencies specified here are not used until they
are referenced in a
POM within the group.
|
void |
setLocation(java.lang.Object key,
InputLocation location)
Sets the location of the specified field.
|
void |
setOtherLocation(java.lang.Object key,
InputLocation location) |
private java.util.List<Dependency> dependencies
private java.util.Map<java.lang.Object,InputLocation> locations
private InputLocation location
private InputLocation dependenciesLocation
public void addDependency(Dependency dependency)
dependency
- a dependency object.public DependencyManagement clone()
clone
in class java.lang.Object
public java.util.List<Dependency> getDependencies()
public InputLocation getLocation(java.lang.Object key)
InputLocationTracker
getLocation
in interface InputLocationTracker
key
- a key object.public void setLocation(java.lang.Object key, InputLocation location)
InputLocationTracker
setLocation
in interface InputLocationTracker
key
- a key object.location
- a location object.public void setOtherLocation(java.lang.Object key, InputLocation location)
key
- a key object.location
- a location object.private InputLocation getOtherLocation(java.lang.Object key)
key
- a key object.public void removeDependency(Dependency dependency)
dependency
- a dependency object.public void setDependencies(java.util.List<Dependency> dependencies)
dependencies
- a dependencies object.