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

Field Summary
private  String artifactId
          The Artifact ID of the repository content.
private  String checksumMD5
          The MD5 checksum for the artifact file.
private  String checksumSHA1
          The SHA1 checksum for the artifact file.
private  String classifier
          The classifier for this artifact.
private  String groupId
          The Group ID of the repository content.
private  Date lastModified
          The Last Modified Timestamp of this artifact.
private  String repositoryId
          The repository associated with this content.
private static long serialVersionUID
           
private  long size
          The size of the artifact on disk.
private  boolean snapshot
          True if this is a snapshot.
private  String type
          The type of artifact.
private  String version
          The version of the repository content.
private  Date whenGathered
          When this artifact was gathered or discovered from the repository.
 
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
 

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.


repositoryId

private String repositoryId
The repository associated with this content.


snapshot

private boolean snapshot
True if this is a snapshot.


checksumMD5

private String checksumMD5
The MD5 checksum for the artifact file.


checksumSHA1

private String checksumSHA1
The SHA1 checksum for the artifact file.


lastModified

private Date lastModified
The Last Modified Timestamp of this artifact.


size

private long size
The size of the artifact on disk.


whenGathered

private Date whenGathered
When this artifact was gathered or discovered from the repository.


serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
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-2013 The Apache Software Foundation. All Rights Reserved.