ShrinkWrap Resolver API 2.0.0-alpha-3

org.jboss.shrinkwrap.resolver.api
Interface MutableCoordinate<COORDINATETYPE extends MutableCoordinate<COORDINATETYPE>>

Type Parameters:
COORDINATETYPE - Concrete type of this MutableCoordinate for covarient return
All Superinterfaces:
Coordinate

public interface MutableCoordinate<COORDINATETYPE extends MutableCoordinate<COORDINATETYPE>>
extends Coordinate

Mutable representation of a single coordinate; an address in a repository-based system which may point to an artifact. Systems may each have their own syntax for parsing the String form of a MutableCoordinate, or supply their own builders for programmatic creation.

Author:
Andrew Lee Rubinger

Method Summary
 COORDINATETYPE address(String address)
          Parses and returns this MutableCoordinate based on the specified String representation
 
Methods inherited from interface org.jboss.shrinkwrap.resolver.api.Coordinate
toCanonicalForm
 

Method Detail

address

COORDINATETYPE address(String address)
                                                                 throws IllegalArgumentException,
                                                                        CoordinateBuildException
Parses and returns this MutableCoordinate based on the specified String representation

Returns:
A coordinate parsed from the specified String representation
Throws:
IllegalArgumentException - If no String representation of the coordinate was specified
CoordinateBuildException - If the specified argument could not be parsed into a MutableCoordinate

ShrinkWrap Resolver API 2.0.0-alpha-3

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