ShrinkWrap Resolver Maven API 2.0.0-alpha-4

org.jboss.shrinkwrap.resolver.api.maven.coordinate
Interface MavenDependency

All Superinterfaces:
MavenCoordinate

public interface MavenDependency
extends MavenCoordinate

Metadata describing a declaration; immutable and Thread-safe.

Author:
Andrew Lee Rubinger, Karel Piwko

Method Summary
 String getArtifactId()
          Returns the "artifactId" portion of this artifact's coordinates
 Set<MavenDependencyExclusion> getExclusions()
          Returns the exclusions defined for this MavenDependency in an immutable, read-only view.
 String getGroupId()
          Returns the "groupId" portion of this artifact's coordinates
 ScopeType getScope()
          Returns the scope for this MavenDependency.
 boolean isOptional()
          Returns whether or not this MavenDependency has been marked as optional; defaults to false
 
Methods inherited from interface org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenCoordinate
equals, getClassifier, getPackaging, getType, getVersion, hashCode
 
Methods inherited from interface org.jboss.shrinkwrap.resolver.api.Coordinate
toCanonicalForm
 

Method Detail

getExclusions

Set<MavenDependencyExclusion> getExclusions()
Returns the exclusions defined for this MavenDependency in an immutable, read-only view. If no exclusions are defined, an empty Set will be returned.

Returns:

getScope

ScopeType getScope()
Returns the scope for this MavenDependency. Never returns null; if no scope has been explicitly-defined, the default ScopeType.COMPILE will be returned.

Returns:

isOptional

boolean isOptional()
Returns whether or not this MavenDependency has been marked as optional; defaults to false

Returns:

getGroupId

String getGroupId()
Returns the "groupId" portion of this artifact's coordinates

Returns:

getArtifactId

String getArtifactId()
Returns the "artifactId" portion of this artifact's coordinates

Returns:

ShrinkWrap Resolver Maven API 2.0.0-alpha-4

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.