This project has retired. For details please refer to its Attic page.
AbstractArtifactKey

org.apache.maven.archiva.model
Class AbstractArtifactKey

Package class diagram package AbstractArtifactKey
java.lang.Object
  extended by org.apache.maven.archiva.model.AbstractArtifactKey
All Implemented Interfaces:
java.io.Serializable, CompoundKey
Direct Known Subclasses:
ArchivaArtifactModelKey, ArtifactReferenceKey

public class AbstractArtifactKey
extends java.lang.Object
implements CompoundKey, java.io.Serializable

AbstractArtifactKey - a artifact reference to a versioned project. This refers to all artifacts of a specific version of a project. This type of reference is typically used by ArchivaProjectModel objects.

If you don't require things like "Version" or "Type", consider the other keys below.

Key Type Group ID Artifact ID Version Classifier Type
AbstractProjectKey Yes Yes      
AbstractVersionedKey Yes Yes Yes    
AbstractArtifactKey Yes Yes Yes Yes Yes

NOTE: This is a jpox required compound key handler class.

See Also:
Serialized Form

Field Summary
 java.lang.String artifactId
          The Artifact ID.
 java.lang.String classifier
          The Classifier.
 java.lang.String groupId
          The Group ID.
 java.lang.String repositoryId
          The Repository Id (JPOX Requires this remain public)
 java.lang.String type
          The Type.
 java.lang.String version
          The Version.
 
Constructor Summary
AbstractArtifactKey()
          Default Constructor.
AbstractArtifactKey(java.lang.String key)
          Key Based Constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Get the equals for this object's values - Required by JPOX.
 int hashCode()
          Get the hashcode for this object's values - Required by JPOX.
 void setArtifactId(java.lang.String artifactId)
           
 void setClassifier(java.lang.String classifier)
           
 void setGroupId(java.lang.String groupId)
           
 void setRepositoryId(java.lang.String repositoryId)
           
 void setType(java.lang.String type)
           
 void setVersion(java.lang.String version)
           
 java.lang.String toString()
          Get the String representation of this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

groupId

public java.lang.String groupId
The Group ID. (JPOX Requires this remain public)


artifactId

public java.lang.String artifactId
The Artifact ID. (JPOX Requires this remain public)


version

public java.lang.String version
The Version. (JPOX Requires this remain public)


classifier

public java.lang.String classifier
The Classifier. (JPOX Requires this remain public)


type

public java.lang.String type
The Type. (JPOX Requires this remain public)


repositoryId

public java.lang.String repositoryId
The Repository Id (JPOX Requires this remain public)

Constructor Detail

AbstractArtifactKey

public AbstractArtifactKey()
Default Constructor. Required by JPOX.


AbstractArtifactKey

public AbstractArtifactKey(java.lang.String key)
Key Based Constructor. Required by JPOX.

Parameters:
key - the String representing this object's values.
Method Detail

toString

public java.lang.String toString()
Get the String representation of this object. - Required by JPOX.

Specified by:
toString in interface CompoundKey
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Get the hashcode for this object's values - Required by JPOX.

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Get the equals for this object's values - Required by JPOX.

Overrides:
equals in class java.lang.Object

setGroupId

public void setGroupId(java.lang.String groupId)

setArtifactId

public void setArtifactId(java.lang.String artifactId)

setVersion

public void setVersion(java.lang.String version)

setClassifier

public void setClassifier(java.lang.String classifier)

setType

public void setType(java.lang.String type)

setRepositoryId

public void setRepositoryId(java.lang.String repositoryId)