public final class MavenDependencyImpl extends Object implements MavenDependencySPI
MavenDependency| Constructor and Description |
|---|
MavenDependencyImpl(MavenCoordinate coordinate,
ScopeType scope,
boolean optional,
boolean undeclaredScope,
MavenDependencyExclusion... exclusions)
Creates a new instance with the specified properties.
|
MavenDependencyImpl(MavenCoordinate coordinate,
ScopeType scope,
boolean optional,
MavenDependencyExclusion... exclusions)
Creates a new instance with the specified properties.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getArtifactId() |
String |
getClassifier() |
Set<MavenDependencyExclusion> |
getExclusions() |
String |
getGroupId() |
PackagingType |
getPackaging() |
ScopeType |
getScope() |
PackagingType |
getType() |
String |
getVersion() |
int |
hashCode() |
boolean |
isOptional() |
boolean |
isUndeclaredScope() |
String |
toCanonicalForm() |
String |
toString() |
public MavenDependencyImpl(MavenCoordinate coordinate, ScopeType scope, boolean optional, MavenDependencyExclusion... exclusions)
ScopeType is specified, default will be
ScopeType.COMPILE. undeclaredScope will be set to falsecoordinate - Delegate, requiredscope - optional - exclusions - MavenDependencyExclusions, if null will be ignoredpublic MavenDependencyImpl(MavenCoordinate coordinate, ScopeType scope, boolean optional, boolean undeclaredScope, MavenDependencyExclusion... exclusions)
ScopeType is specified, default will be
ScopeType.COMPILE.coordinate - Delegate, requiredscope - optional - undeclaredScope - exclusions - MavenDependencyExclusions, if null will be ignoredpublic String getGroupId()
MavenGABase.getGroupId()public String toCanonicalForm()
Coordinate.toCanonicalForm()public String getArtifactId()
MavenGABase.getArtifactId()public PackagingType getPackaging()
getPackaging in interface MavenCoordinateMavenCoordinate.getPackaging()public PackagingType getType()
getType in interface MavenCoordinateMavenCoordinate.getType()public String getClassifier()
getClassifier in interface MavenCoordinateMavenCoordinate.getClassifier()public String getVersion()
getVersion in interface MavenCoordinateMavenCoordinate.getVersion()public Set<MavenDependencyExclusion> getExclusions()
getExclusions in interface MavenDependencyMavenDependency.getExclusions()public ScopeType getScope()
getScope in interface MavenDependencyMavenDependency.getScope()public boolean isOptional()
isOptional in interface MavenDependencyMavenDependency.isOptional()public boolean isUndeclaredScope()
isUndeclaredScope in interface MavenDependencySPIMavenDependencySPI.isUndeclaredScope()public int hashCode()
hashCode in interface MavenCoordinatehashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in interface MavenCoordinateequals in class ObjectObject.equals(java.lang.Object)public String toString()
toString in class ObjectObject.toString()Copyright © 2014 JBoss by Red Hat. All rights reserved.