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

org.apache.maven.archiva.model
Class AbstractProjectKey

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

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

AbstractProjectKey - A versionless reference to a Project. This refers to all versions, and all artifacts of a project. This type of reference is typically used by ArchivaRepositoryMetadata 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.
 
Constructor Summary
AbstractProjectKey()
          Default Constructor.
AbstractProjectKey(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)

Constructor Detail

AbstractProjectKey

public AbstractProjectKey()
Default Constructor. Required by JPOX.


AbstractProjectKey

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