Class DefaultArtifact

java.lang.Object
org.fedoraproject.xmvn.artifact.DefaultArtifact
All Implemented Interfaces:
Artifact

@Deprecated public final class DefaultArtifact extends Object implements Artifact
Deprecated.
Author:
Mikolaj Izdebski
  • Constructor Details

    • DefaultArtifact

      public DefaultArtifact(String coords)
      Deprecated.
    • DefaultArtifact

      public DefaultArtifact(String groupId, String artifactId)
      Deprecated.
    • DefaultArtifact

      public DefaultArtifact(String groupId, String artifactId, String version)
      Deprecated.
    • DefaultArtifact

      public DefaultArtifact(String groupId, String artifactId, String extension, String version)
      Deprecated.
    • DefaultArtifact

      public DefaultArtifact(String groupId, String artifactId, String extension, String classifier, String version)
      Deprecated.
    • DefaultArtifact

      public DefaultArtifact(String groupId, String artifactId, String extension, String classifier, String version, Path path)
      Deprecated.
  • Method Details

    • getGroupId

      public String getGroupId()
      Deprecated.
      Description copied from interface: Artifact
      Returns the group identifier of this artifact.
      Specified by:
      getGroupId in interface Artifact
      Returns:
      the group identifier, never null
    • getArtifactId

      public String getArtifactId()
      Deprecated.
      Description copied from interface: Artifact
      Returns the artifact identifier of this artifact.
      Specified by:
      getArtifactId in interface Artifact
      Returns:
      the artifact identifier, never null
    • getExtension

      public String getExtension()
      Deprecated.
      Description copied from interface: Artifact
      Returns the extension of this artifact.
      Specified by:
      getExtension in interface Artifact
      Returns:
      the artifact extension, never null
    • getClassifier

      public String getClassifier()
      Deprecated.
      Description copied from interface: Artifact
      Returns the classifier of this artifact.
      Specified by:
      getClassifier in interface Artifact
      Returns:
      the artifact classifier, never null
    • getVersion

      public String getVersion()
      Deprecated.
      Description copied from interface: Artifact
      Returns the version of this artifact.
      Specified by:
      getVersion in interface Artifact
      Returns:
      the artifact version, never null
    • getPath

      public Path getPath()
      Deprecated.
      Description copied from interface: Artifact
      Returns the local file path of the artifact, or null if the artifact is unresolved (i.e., has no associated file).
      Specified by:
      getPath in interface Artifact
      Returns:
      the artifact file path, or null if not resolved
    • withVersion

      public Artifact withVersion(String version)
      Deprecated.
      Description copied from interface: Artifact
      Creates a new artifact instance with the specified version.
      Specified by:
      withVersion in interface Artifact
      Parameters:
      version - the new version to set
      Returns:
      a new artifact instance with the updated version
    • withPath

      public Artifact withPath(Path path)
      Deprecated.
      Description copied from interface: Artifact
      Creates a new artifact instance with the specified file path.
      Specified by:
      withPath in interface Artifact
      Parameters:
      path - the new file path to set
      Returns:
      a new artifact instance with the updated path
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object rhs)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object