public class CoordinateBuilder extends Object implements Coordinate
Modifier and Type | Method and Description |
---|---|
static CoordinateBuilder |
create() |
static CoordinateBuilder |
create(Coordinate c) |
static CoordinateBuilder |
create(Map<String,String> atts) |
static CoordinateBuilder |
create(String coordinates)
Creates a Coordinate
|
boolean |
equals(Object obj) |
String |
getArtifactId()
Get the minor-identifier
|
String |
getClassifier()
Get the classifier.
|
String |
getGroupId()
Get the major identifier
|
String |
getPackaging()
Get the packaging type.
|
String |
getSystemPath()
Get the systemPath of this
Dependency |
String |
getVersion()
Get the version
|
int |
hashCode() |
boolean |
isSnapshot()
Returns true if this coordinate version is a SNAPSHOT
|
CoordinateBuilder |
setArtifactId(String artifactId) |
CoordinateBuilder |
setClassifier(String classifier) |
CoordinateBuilder |
setGroupId(String groupId) |
CoordinateBuilder |
setPackaging(String packaging) |
CoordinateBuilder |
setSystemPath(String systemPath) |
CoordinateBuilder |
setVersion(String version) |
String |
toString()
Convenience method which should be used to convert a
Coordinate object into its id representation, for
example: "groupId:artifactId:::version", "groupId:artifactId:packaging::version" or
"groupId:artifactId:packaging:classifier:version" |
public static CoordinateBuilder create(String coordinates)
coordinates
- The artifact coordinates in the format
<groupId>:<artifactId>[:<packaging>[:<classifier>]]:<version>
, must not be null
or
empty.public static CoordinateBuilder create(Map<String,String> atts)
public static CoordinateBuilder create(Coordinate c)
public static CoordinateBuilder create()
public String getGroupId()
Coordinate
getGroupId
in interface Coordinate
public String getArtifactId()
Coordinate
getArtifactId
in interface Coordinate
public String getVersion()
Coordinate
getVersion
in interface Coordinate
public boolean isSnapshot()
Coordinate
isSnapshot
in interface Coordinate
public CoordinateBuilder setGroupId(String groupId)
public CoordinateBuilder setArtifactId(String artifactId)
public CoordinateBuilder setVersion(String version)
public String getClassifier()
Coordinate
getClassifier
in interface Coordinate
public CoordinateBuilder setClassifier(String classifier)
public String getPackaging()
Coordinate
getPackaging
in interface Coordinate
public String getSystemPath()
Coordinate
Dependency
getSystemPath
in interface Coordinate
public CoordinateBuilder setPackaging(String packaging)
public CoordinateBuilder setSystemPath(String systemPath)
public String toString()
Coordinate
object into its id representation, for
example: "groupId:artifactId:::version", "groupId:artifactId:packaging::version" or
"groupId:artifactId:packaging:classifier:version"Copyright © 2015 JBoss by Red Hat. All rights reserved.