ShrinkWrap Resolver Maven API 2.0.0-alpha-3

org.jboss.shrinkwrap.resolver.api.maven.coordinate
Class MavenCoordinates

java.lang.Object
  extended by org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenCoordinates

public final class MavenCoordinates
extends Object

Factory class for creating new MavenCoordinate instances

Author:
Andrew Lee Rubinger

Method Summary
static MavenCoordinate createCoordinate(String canonicalForm)
          Creates a new MavenCoordinate instance from the specified, required canonical form in format :[:[:]][:]
static MavenCoordinate createCoordinate(String groupId, String artifactId, String version, PackagingType packaging, String classifier)
          Creates a new MavenCoordinate instance from the specified arguments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createCoordinate

public static MavenCoordinate createCoordinate(String canonicalForm)
                                        throws IllegalArgumentException,
                                               CoordinateParseException
Creates a new MavenCoordinate instance from the specified, required canonical form in format :[:[:]][:]

Parameters:
canonicalForm -
Returns:
Throws:
IllegalArgumentException - If the canonical form is not supplied
CoordinateParseException - If the specified canonical form is not valid

createCoordinate

public static MavenCoordinate createCoordinate(String groupId,
                                               String artifactId,
                                               String version,
                                               PackagingType packaging,
                                               String classifier)
                                        throws IllegalArgumentException
Creates a new MavenCoordinate instance from the specified arguments

Parameters:
groupId -
artifactId -
version -
packaging -
classifier -
Returns:
Throws:
IllegalArgumentException - If groupId or artifactId is not specified

ShrinkWrap Resolver Maven API 2.0.0-alpha-3

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