Package org.apache.maven.model
Class DependencyManagement
java.lang.Object
org.apache.maven.model.BaseObject
org.apache.maven.model.DependencyManagement
- All Implemented Interfaces:
Serializable
,Cloneable
,InputLocationTracker
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.maven.model.BaseObject
BaseObject.ChildrenTracking
-
Field Summary
Fields inherited from class org.apache.maven.model.BaseObject
childrenTracking, delegate
-
Constructor Summary
ConstructorDescriptionDependencyManagement
(DependencyManagement delegate) DependencyManagement
(DependencyManagement delegate, BaseObject parent) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDependency
(Dependency dependency) clone()
static List<DependencyManagement>
static List<DependencyManagement>
boolean
getLocation
(Object key) Gets the location of the specified field in the input source.int
hashCode()
void
removeDependency
(Dependency dependency) protected boolean
void
setDependencies
(List<Dependency> dependencies) void
setLocation
(Object key, InputLocation location) Sets the location of the specified field.Methods inherited from class org.apache.maven.model.BaseObject
update
-
Constructor Details
-
DependencyManagement
public DependencyManagement() -
DependencyManagement
-
DependencyManagement
-
-
Method Details
-
clone
-
getDelegate
- Overrides:
getDelegate
in classBaseObject
-
equals
-
hashCode
public int hashCode() -
getDependencies
-
setDependencies
-
addDependency
-
removeDependency
-
getLocation
Description copied from interface:InputLocationTracker
Gets the location of the specified field in the input source.- Parameters:
key
- The key of the field, must not benull
.- Returns:
- The location of the field in the input source or
null
if unknown.
-
setLocation
Description copied from interface:InputLocationTracker
Sets the location of the specified field.- Parameters:
key
- The key of the field, must not benull
.location
- The location of the field, may benull
.
-
replace
- Overrides:
replace
in classBaseObject
-
dependencyManagementToApiV4
public static List<DependencyManagement> dependencyManagementToApiV4(List<DependencyManagement> list) -
dependencyManagementToApiV3
public static List<DependencyManagement> dependencyManagementToApiV3(List<DependencyManagement> list)
-