Class ArtifactCoordinates
java.lang.Object
org.jboss.modules.maven.ArtifactCoordinates
Maven artifact coordinate specification.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionArtifactCoordinates(String groupId, String artifactId, String version) Construct a new instance with an empty classifier.ArtifactCoordinates(String groupId, String artifactId, String version, String classifier) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermine whether this coordinates object equals the target object.booleanDetermine whether this coordinates object equals the target object.static ArtifactCoordinatesfromString(String string) Parse a string and produce artifact coordinates from it.Get the artifact ID.Get the classifier.Get the group ID.Get the version.inthashCode()Get the hash code.Create a relative repository path for the given artifact coordinates with a'/'separator.relativeArtifactPath(char separator) Create a relative repository path for the given artifact coordinates.toString()Get the string representation.
-
Field Details
-
snapshotPattern
-
VALID_PATTERN
-
groupId
-
artifactId
-
version
-
classifier
-
hashCode
private int hashCode -
toString
-
-
Constructor Details
-
ArtifactCoordinates
Construct a new instance.- Parameters:
groupId- the group ID (must not benull)artifactId- the artifact ID (must not benull)version- the version string (must not benull)classifier- the classifier string (must not benull, may be empty)
-
ArtifactCoordinates
-
-
Method Details
-
fromString
Parse a string and produce artifact coordinates from it.- Parameters:
string- the string to parse (must not benull)- Returns:
- the artifact coordinates object (not
null)
-
getGroupId
-
getArtifactId
-
getVersion
-
getClassifier
-
relativeArtifactPath
Create a relative repository path for the given artifact coordinates.- Parameters:
separator- the separator character to use (typically'/'orFile.separatorChar)- Returns:
- the path string
-
relativeArtifactPath
Create a relative repository path for the given artifact coordinates with a'/'separator.- Returns:
- the path string
-
equals
-
equals
Determine whether this coordinates object equals the target object.- Parameters:
obj- the target object- Returns:
trueif the object is equal to this one,falseotherwise
-
hashCode
-
toString
-