org.apache.archiva.model
Class ArtifactReference

java.lang.Object
  extended by org.apache.archiva.model.ArtifactReference
All Implemented Interfaces:
Serializable

public class ArtifactReference
extends Object
implements Serializable

Class ArtifactReference.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
ArtifactReference()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getArtifactId()
          Get The Artifact ID of the repository content.
 String getClassifier()
          Get The classifier for this artifact.
 String getGroupId()
          Get The Group ID of the repository content.
 String getType()
          Get The type of artifact.
 String getVersion()
          Get The version of the repository content.
 int hashCode()
           
 void setArtifactId(String artifactId)
          Set The Artifact ID of the repository content.
 void setClassifier(String classifier)
          Set The classifier for this artifact.
 void setGroupId(String groupId)
          Set The Group ID of the repository content.
 void setType(String type)
          Set The type of artifact.
 void setVersion(String version)
          Set The version of the repository content.
static String toKey(ArtifactReference artifactReference)
           
static String toVersionlessKey(ArtifactReference artifactReference)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArtifactReference

public ArtifactReference()
Method Detail

getArtifactId

public String getArtifactId()
Get The Artifact ID of the repository content.

Returns:
String

getClassifier

public String getClassifier()
Get The classifier for this artifact.

Returns:
String

getGroupId

public String getGroupId()
Get The Group ID of the repository content.

Returns:
String

getType

public String getType()
Get The type of artifact.

Returns:
String

getVersion

public String getVersion()
Get The version of the repository content.

Returns:
String

setArtifactId

public void setArtifactId(String artifactId)
Set The Artifact ID of the repository content.

Parameters:
artifactId -

setClassifier

public void setClassifier(String classifier)
Set The classifier for this artifact.

Parameters:
classifier -

setGroupId

public void setGroupId(String groupId)
Set The Group ID of the repository content.

Parameters:
groupId -

setType

public void setType(String type)
Set The type of artifact.

Parameters:
type -

setVersion

public void setVersion(String version)
Set The version of the repository content.

Parameters:
version -

toKey

public static String toKey(ArtifactReference artifactReference)

toVersionlessKey

public static String toVersionlessKey(ArtifactReference artifactReference)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2006-2011 The Apache Software Foundation. All Rights Reserved.