org.apache.archiva.model
Class ArchivaArtifactModel

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

public class ArchivaArtifactModel
extends Object
implements Serializable

Class ArchivaArtifactModel.

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

Constructor Summary
ArchivaArtifactModel()
           
 
Method Summary
 boolean equals(Object other)
          Method equals.
 String getArtifactId()
          Get The Artifact ID of the repository content.
 String getChecksumMD5()
          Get The MD5 checksum for the artifact file.
 String getChecksumSHA1()
          Get The SHA1 checksum for the artifact file.
 String getClassifier()
          Get The classifier for this artifact.
 String getGroupId()
          Get The Group ID of the repository content.
 Date getLastModified()
          Get The Last Modified Timestamp of this artifact.
 String getRepositoryId()
          Get The repository associated with this content.
 long getSize()
          Get The size of the artifact on disk.
 String getType()
          Get The type of artifact.
 String getVersion()
          Get The version of the repository content.
 Date getWhenGathered()
          Get When this artifact was gathered or discovered from the repository.
 int hashCode()
          Method hashCode.
 boolean isSnapshot()
          Get True if this is a snapshot.
 void setArtifactId(String artifactId)
          Set The Artifact ID of the repository content.
 void setChecksumMD5(String checksumMD5)
          Set The MD5 checksum for the artifact file.
 void setChecksumSHA1(String checksumSHA1)
          Set The SHA1 checksum for the artifact file.
 void setClassifier(String classifier)
          Set The classifier for this artifact.
 void setGroupId(String groupId)
          Set The Group ID of the repository content.
 void setLastModified(Date lastModified)
          Set The Last Modified Timestamp of this artifact.
 void setRepositoryId(String repositoryId)
          Set The repository associated with this content.
 void setSize(long size)
          Set The size of the artifact on disk.
 void setSnapshot(boolean snapshot)
          Set True if this is a snapshot.
 void setType(String type)
          Set The type of artifact.
 void setVersion(String version)
          Set The version of the repository content.
 void setWhenGathered(Date whenGathered)
          Set When this artifact was gathered or discovered from the repository.
 String toString()
          Method toString.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArchivaArtifactModel

public ArchivaArtifactModel()
Method Detail

equals

public boolean equals(Object other)
Method equals.

Overrides:
equals in class Object
Parameters:
other -
Returns:
boolean

getArtifactId

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

Returns:
String

getChecksumMD5

public String getChecksumMD5()
Get The MD5 checksum for the artifact file.

Returns:
String

getChecksumSHA1

public String getChecksumSHA1()
Get The SHA1 checksum for the artifact file.

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

getLastModified

public Date getLastModified()
Get The Last Modified Timestamp of this artifact.

Returns:
Date

getRepositoryId

public String getRepositoryId()
Get The repository associated with this content.

Returns:
String

getSize

public long getSize()
Get The size of the artifact on disk.

Returns:
long

getType

public String getType()
Get The type of artifact.

Returns:
String

getVersion

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

Returns:
String

getWhenGathered

public Date getWhenGathered()
Get When this artifact was gathered or discovered from the repository.

Returns:
Date

hashCode

public int hashCode()
Method hashCode.

Overrides:
hashCode in class Object
Returns:
int

isSnapshot

public boolean isSnapshot()
Get True if this is a snapshot.

Returns:
boolean

setArtifactId

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

Parameters:
artifactId -

setChecksumMD5

public void setChecksumMD5(String checksumMD5)
Set The MD5 checksum for the artifact file.

Parameters:
checksumMD5 -

setChecksumSHA1

public void setChecksumSHA1(String checksumSHA1)
Set The SHA1 checksum for the artifact file.

Parameters:
checksumSHA1 -

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 -

setLastModified

public void setLastModified(Date lastModified)
Set The Last Modified Timestamp of this artifact.

Parameters:
lastModified -

setRepositoryId

public void setRepositoryId(String repositoryId)
Set The repository associated with this content.

Parameters:
repositoryId -

setSize

public void setSize(long size)
Set The size of the artifact on disk.

Parameters:
size -

setSnapshot

public void setSnapshot(boolean snapshot)
Set True if this is a snapshot.

Parameters:
snapshot -

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 -

setWhenGathered

public void setWhenGathered(Date whenGathered)
Set When this artifact was gathered or discovered from the repository.

Parameters:
whenGathered -

toString

public String toString()
Method toString.

Overrides:
toString in class Object
Returns:
String


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