org.apache.maven.archiva.model
Class AbstractVersionedKey

Package class diagram package AbstractVersionedKey
java.lang.Object
  extended by org.apache.maven.archiva.model.AbstractVersionedKey
All Implemented Interfaces:
java.io.Serializable, CompoundKey
Direct Known Subclasses:
ArchivaProjectModelKey, ArchivaRepositoryMetadataKey, VersionedReferenceKey

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

AbstractVersionedKey - a versioned reference to a 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 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 groupId
          The Group ID.
 java.lang.String version
          The Version.
 
Constructor Summary
AbstractVersionedKey()
          Default Constructor.
AbstractVersionedKey(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.
 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)

Constructor Detail

AbstractVersionedKey

public AbstractVersionedKey()
Default Constructor. Required by JPOX.


AbstractVersionedKey

public AbstractVersionedKey(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