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()
see:
org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenGABaseImpl#getArtifactId() |
String |
getClassifier() |
Set<MavenDependencyExclusion> |
getExclusions() |
String |
getGroupId()
see:
org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenGABaseImpl#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 - A coordinate
Delegate, requiredscope - A scopeoptional - Whether or not this MavenDependency has been marked as 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 - A coordinate
Delegate, requiredscope - A scopeoptional - Whether or not this MavenDependency has been marked as optional.undeclaredScope - Whether there is no scopeexclusions - MavenDependencyExclusions, if null will be ignoredpublic String getGroupId()
org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenGABaseImpl#getGroupId()public String toCanonicalForm()
Coordinate.toCanonicalForm()public String getArtifactId()
org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenGABaseImpl#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 © 2015 JBoss by Red Hat. All rights reserved.