Class DefaultArtifact
java.lang.Object
org.fedoraproject.xmvn.artifact.DefaultArtifact
- All Implemented Interfaces:
Artifact
-
Field Summary
Fields inherited from interface Artifact
DEFAULT_EXTENSION, DEFAULT_VERSION, MF_KEY_ARTIFACTID, MF_KEY_CLASSIFIER, MF_KEY_EXTENSION, MF_KEY_GROUPID, MF_KEY_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionDefaultArtifact(String coords) DefaultArtifact(String groupId, String artifactId) DefaultArtifact(String groupId, String artifactId, String version) DefaultArtifact(String groupId, String artifactId, String extension, String version) DefaultArtifact(String groupId, String artifactId, String extension, String classifier, String version) DefaultArtifact(String groupId, String artifactId, String extension, String classifier, String version, Path path) -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet artifact identifier of this artifact.Get classifier of this artifact.Get extension of this artifact.Get group identifier of this artifact.getPath()Get local path of artifact file ornullif artifact is not resolved (doesn't have associated artifact file).Get version of this artifact.inthashCode()Set artifact path.setVersion(String version) Set artifact version.toString()
-
Constructor Details
-
DefaultArtifact
-
DefaultArtifact
-
DefaultArtifact
-
DefaultArtifact
-
DefaultArtifact
-
DefaultArtifact
-
-
Method Details
-
getGroupId
Description copied from interface:ArtifactGet group identifier of this artifact.- Specified by:
getGroupIdin interfaceArtifact- Returns:
- artifact group identifier, never
null.
-
getArtifactId
Description copied from interface:ArtifactGet artifact identifier of this artifact.- Specified by:
getArtifactIdin interfaceArtifact- Returns:
- artifact identifier, never
null.
-
getExtension
Description copied from interface:ArtifactGet extension of this artifact.- Specified by:
getExtensionin interfaceArtifact- Returns:
- artifact extension, never
null.
-
getClassifier
Description copied from interface:ArtifactGet classifier of this artifact.- Specified by:
getClassifierin interfaceArtifact- Returns:
- artifact classifier, never
null.
-
getVersion
Description copied from interface:ArtifactGet version of this artifact.- Specified by:
getVersionin interfaceArtifact- Returns:
- artifact version, never
null.
-
getPath
-
setVersion
Description copied from interface:ArtifactSet artifact version.Since artifacts are immutable, this method returns a new object and leaves the original unmodified.
- Specified by:
setVersionin interfaceArtifact- Parameters:
version- the new artifact version to set- Returns:
- copy of artifact with the new version set
-
setPath
Description copied from interface:ArtifactSet artifact path.Since artifacts are immutable, this method returns a new object and leaves the original unmodified.
-
toString
-
equals
-
hashCode
-