public class DependencyImpl extends Object implements Dependency
DependencyBuilder for Dependency creation & instantiation.| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getArtifactId()
Get the minor-identifier for this
Dependency. |
String |
getClassifier()
Get the classifier for this
Dependency |
List<Dependency> |
getExcludedDependencies()
Get a list of
Dependency objects to be excluded from this Dependency's list of inclusions when it
is included in a project. |
String |
getGroupId()
Get the major identifier for this
Dependency. |
String |
getPackagingType()
Get the specified packaging type of this
Dependency |
PackagingType |
getPackagingTypeEnum()
Get the
PackagingType of this Dependency, if the type is not one of the default supported types,
PackagingType.OTHER will be returned; |
String |
getScopeType()
Get the scope type of this
Dependency |
ScopeType |
getScopeTypeEnum()
Get the
ScopeType of this Dependency, if the type is not one of the default supported types,
ScopeType.OTHER will be returned; |
String |
getSystemPath()
Get the systemPath of this
Dependency |
String |
getVersion()
Get the version of this
Dependency. |
int |
hashCode() |
boolean |
isSnapshot()
Returns true if this dependency version is a SNAPSHOT
|
void |
setArtifactId(String artifactId) |
void |
setClassifier(String classifier) |
void |
setExcludedDependencies(List<Dependency> excludedDependencies) |
void |
setGroupId(String groupId) |
void |
setPackagingType(PackagingType packagingType) |
void |
setPackagingType(String type) |
void |
setScopeType(ScopeType scope) |
void |
setScopeType(String type) |
void |
setSystemPath(String systemPath) |
void |
setVersion(String version) |
String |
toCoordinates()
Return a string represenging this dependency in the form of a standard identifier.
|
String |
toString() |
public String getArtifactId()
DependencyDependency.getArtifactId in interface Dependencypublic String getGroupId()
DependencyDependency.getGroupId in interface Dependencypublic String getVersion()
DependencyDependency.getVersion in interface Dependencypublic String getScopeType()
DependencyDependencygetScopeType in interface Dependencypublic PackagingType getPackagingTypeEnum()
DependencyPackagingType of this Dependency, if the type is not one of the default supported types,
PackagingType.OTHER will be returned;getPackagingTypeEnum in interface Dependencypublic ScopeType getScopeTypeEnum()
DependencyScopeType of this Dependency, if the type is not one of the default supported types,
ScopeType.OTHER will be returned;getScopeTypeEnum in interface Dependencypublic void setScopeType(ScopeType scope)
public void setScopeType(String type)
public void setVersion(String version)
public void setGroupId(String groupId)
public void setArtifactId(String artifactId)
public String getClassifier()
DependencyDependencygetClassifier in interface Dependencypublic void setClassifier(String classifier)
public List<Dependency> getExcludedDependencies()
DependencyDependency objects to be excluded from this Dependency's list of inclusions when it
is included in a project.getExcludedDependencies in interface Dependencypublic void setExcludedDependencies(List<Dependency> excludedDependencies)
public String getPackagingType()
DependencyDependencygetPackagingType in interface Dependencypublic void setPackagingType(PackagingType packagingType)
public void setPackagingType(String type)
public String getSystemPath()
DependencyDependencygetSystemPath in interface Dependencypublic void setSystemPath(String systemPath)
public String toCoordinates()
DependencytoCoordinates in interface Dependencypublic boolean isSnapshot()
DependencyisSnapshot in interface DependencyCopyright © 2013 JBoss by Red Hat. All Rights Reserved.