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