public class JDomDependency extends Dependency implements MavenCoordinate
Constructor and Description |
---|
JDomDependency(org.jdom2.Element dependency)
Constructor for JDomDependency.
|
Modifier and Type | Method and Description |
---|---|
void |
addExclusion(Exclusion exclusion) |
String |
getArtifactId()
getArtifactId.
|
String |
getClassifier() |
List<Exclusion> |
getExclusions() |
String |
getGroupId()
getGroupId.
|
String |
getName()
getName.
|
String |
getScope() |
String |
getSystemPath() |
String |
getType() |
String |
getVersion()
getVersion.
|
boolean |
isOptional() |
void |
removeExclusion(Exclusion exclusion) |
void |
setArtifactId(String artifactId) |
void |
setClassifier(String classifier) |
void |
setExclusions(List<Exclusion> exclusions) |
void |
setGroupId(String groupId) |
void |
setOptional(boolean optional) |
void |
setScope(String scope) |
void |
setSystemPath(String systemPath) |
void |
setType(String type) |
void |
setVersion(String version)
setVersion.
|
clone, getLocation, getManagementKey, getOptional, setLocation, setOptional, toString
public JDomDependency(org.jdom2.Element dependency)
Constructor for JDomDependency.
dependency
- a Element
objectpublic void addExclusion(Exclusion exclusion)
addExclusion
in class Dependency
public String getArtifactId()
MavenCoordinate
getArtifactId.
getArtifactId
in interface MavenCoordinate
getArtifactId
in class Dependency
String
objectpublic String getClassifier()
getClassifier
in class Dependency
public List<Exclusion> getExclusions()
getExclusions
in class Dependency
public String getGroupId()
MavenCoordinate
getGroupId.
getGroupId
in interface MavenCoordinate
getGroupId
in class Dependency
String
objectpublic String getScope()
getScope
in class Dependency
public String getSystemPath()
getSystemPath
in class Dependency
public String getType()
getType
in class Dependency
public String getVersion()
MavenCoordinate
getVersion.
getVersion
in interface MavenCoordinate
getVersion
in class Dependency
String
objectpublic boolean isOptional()
isOptional
in class Dependency
public void removeExclusion(Exclusion exclusion)
removeExclusion
in class Dependency
public void setArtifactId(String artifactId)
setArtifactId
in class Dependency
public void setClassifier(String classifier)
setClassifier
in class Dependency
public void setExclusions(List<Exclusion> exclusions)
setExclusions
in class Dependency
public void setGroupId(String groupId)
setGroupId
in class Dependency
public void setOptional(boolean optional)
setOptional
in class Dependency
public void setScope(String scope)
setScope
in class Dependency
public void setSystemPath(String systemPath)
setSystemPath
in class Dependency
public void setType(String type)
setType
in class Dependency
public void setVersion(String version)
MavenCoordinate
setVersion.
setVersion
in interface MavenCoordinate
setVersion
in class Dependency
version
- a String
objectpublic String getName()
MavenCoordinate
getName.
getName
in interface MavenCoordinate
String
objectCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.