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 SummaryNested classes/interfaces inherited from class org.apache.maven.model.BaseObjectBaseObject.ChildrenTracking
- 
Field SummaryFields inherited from class org.apache.maven.model.BaseObjectchildrenTracking, delegate
- 
Constructor SummaryConstructorsConstructorDescriptionDependency(Dependency delegate) Dependency(Dependency delegate, BaseObject parent) 
- 
Method SummaryModifier 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.BaseObjectupdate
- 
Constructor Details- 
Dependencypublic Dependency()
- 
Dependency
- 
Dependency
 
- 
- 
Method Details- 
clone
- 
getDelegate- Overrides:
- getDelegatein class- BaseObject
 
- 
equals
- 
hashCodepublic int hashCode()
- 
getGroupId
- 
setGroupId
- 
getArtifactId
- 
setArtifactId
- 
getVersion
- 
setVersion
- 
getType
- 
setType
- 
getClassifier
- 
setClassifier
- 
getScope
- 
setScope
- 
getSystemPath
- 
setSystemPath
- 
getExclusions
- 
setExclusions
- 
addExclusion
- 
removeExclusion
- 
getOptional
- 
setOptional
- 
getLocationDescription copied from interface:InputLocationTrackerGets the location of the specified field in the input source.- Parameters:
- key- The key of the field, must not be- null.
- Returns:
- The location of the field in the input source or
 nullif unknown.
 
- 
setLocationDescription copied from interface:InputLocationTrackerSets the location of the specified field.- Parameters:
- key- The key of the field, must not be- null.
- location- The location of the field, may be- null.
 
- 
replace- Overrides:
- replacein class- BaseObject
 
- 
dependencyToApiV4
- 
dependencyToApiV3
- 
isOptionalpublic boolean isOptional()
- 
setOptionalpublic void setOptional(boolean optional) 
- 
toString
- 
getManagementKey- Returns:
- the management key as groupId:artifactId:type
 
 
-