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

Field Summary
private  String artifactId
          The Artifact ID of the repository content.
private  String classifier
          The classifier for this artifact.
private  String groupId
          The Group ID of the repository content.
private static long serialVersionUID
           
private  String type
          The type of artifact.
private  String version
          The version of the repository content.
 
Constructor Summary
ArtifactReference()
           
 
Method Summary
private static String defaultString(String value)
           
 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
 

Field Detail

groupId

private String groupId
The Group ID of the repository content.


artifactId

private String artifactId
The Artifact ID of the repository content.


version

private String version
The version of the repository content.


classifier

private String classifier
The classifier for this artifact.


type

private String type
The type of artifact.


serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
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 -

defaultString

private static String defaultString(String value)

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-2013 The Apache Software Foundation. All Rights Reserved.