Package org.apache.maven.model
Class Dependency
java.lang.Object
org.apache.maven.model.BaseObject
org.apache.maven.model.Dependency
- 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
ConstructorsConstructorDescriptionDependency(Dependency delegate) Dependency(Dependency delegate, BaseObject parent)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddExclusion(Exclusion exclusion) clone()static List<Dependency>dependencyToApiV3(List<Dependency> list) static List<Dependency>dependencyToApiV4(List<Dependency> list) booleangetLocation(Object key) Gets the location of the specified field in the input source.getScope()getType()inthashCode()booleanvoidremoveExclusion(Exclusion exclusion) protected booleanvoidsetArtifactId(String artifactId) voidsetClassifier(String classifier) voidsetExclusions(List<Exclusion> exclusions) voidsetGroupId(String groupId) voidsetLocation(Object key, InputLocation location) Sets the location of the specified field.voidsetOptional(boolean optional) voidsetOptional(String optional) voidvoidsetSystemPath(String systemPath) voidvoidsetVersion(String version) toString()Methods inherited from class org.apache.maven.model.BaseObject
update 
- 
Constructor Details
- 
Dependency
public Dependency() - 
Dependency
 - 
Dependency
 
 - 
 - 
Method Details
- 
clone
 - 
getDelegate
- Overrides:
 getDelegatein classBaseObject
 - 
equals
 - 
hashCode
public int hashCode() - 
getGroupId
 - 
setGroupId
 - 
getArtifactId
 - 
setArtifactId
 - 
getVersion
 - 
setVersion
 - 
getType
 - 
setType
 - 
getClassifier
 - 
setClassifier
 - 
getScope
 - 
setScope
 - 
getSystemPath
 - 
setSystemPath
 - 
getExclusions
 - 
setExclusions
 - 
addExclusion
 - 
removeExclusion
 - 
getOptional
 - 
setOptional
 - 
getLocation
Description copied from interface:InputLocationTrackerGets 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
 
nullif unknown. 
 - 
setLocation
Description copied from interface:InputLocationTrackerSets 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:
 replacein classBaseObject
 - 
dependencyToApiV4
 - 
dependencyToApiV3
 - 
isOptional
public boolean isOptional() - 
setOptional
public void setOptional(boolean optional)  - 
toString
 - 
getManagementKey
- Returns:
 - the management key as 
groupId:artifactId:type 
 
 -