org.apache.archiva.model
Class ArchivaRepositoryMetadata

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

public class ArchivaRepositoryMetadata
extends Object
implements Serializable

Class ArchivaRepositoryMetadata.

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

Field Summary
private  String artifactId
          The Artifact ID of the metadata.
private  List<String> availableVersions
          Field availableVersions.
private  Date fileLastModified
          The Last Modified Timestamp of this file.
private  long fileSize
          The size of the artifact on disk.
private  String groupId
          The Group ID of the metadata.
private  String lastUpdated
          When the metadata was last updated.
private  String latestVersion
          The latest version id.
private  List<Plugin> plugins
          Field plugins.
private  String releasedVersion
          The released version id.
private static long serialVersionUID
           
private  SnapshotVersion snapshotVersion
          The snapshot version id.
private  String version
          The Version of the metadata.
 
Constructor Summary
ArchivaRepositoryMetadata()
           
 
Method Summary
 void addAvailableVersion(String string)
          Method addAvailableVersion.
 void addPlugin(Plugin plugin)
          Method addPlugin.
 boolean equals(Object other)
          Method equals.
 String getArtifactId()
          Get the Artifact ID of the metadata.
 List<String> getAvailableVersions()
          Method getAvailableVersions.
 Date getFileLastModified()
          Get the Last Modified Timestamp of this file.
 long getFileSize()
          Get the size of the artifact on disk.
 String getGroupId()
          Get the Group ID of the metadata.
 String getLastUpdated()
          Get when the metadata was last updated.
 String getLatestVersion()
          Get the latest version id.
 List<Plugin> getPlugins()
          Method getPlugins.
 String getReleasedVersion()
          Get the released version id.
 SnapshotVersion getSnapshotVersion()
          Get the snapshot version id.
 String getVersion()
          Get the Version of the metadata.
 int hashCode()
          Method hashCode.
 void removeAvailableVersion(String string)
          Method removeAvailableVersion.
 void removePlugin(Plugin plugin)
          Method removePlugin.
 void setArtifactId(String artifactId)
          Set the Artifact ID of the metadata.
 void setAvailableVersions(List<String> availableVersions)
          Set the list of available version ids.
 void setFileLastModified(Date fileLastModified)
          Set the Last Modified Timestamp of this file.
 void setFileSize(long fileSize)
          Set the size of the artifact on disk.
 void setGroupId(String groupId)
          Set the Group ID of the metadata.
 void setLastUpdated(String lastUpdated)
          Set when the metadata was last updated.
 void setLastUpdatedTimestamp(Date date)
           
 void setLatestVersion(String latestVersion)
          Set the latest version id.
 void setPlugins(List<Plugin> plugins)
          Set the available plugins.
 void setReleasedVersion(String releasedVersion)
          Set the released version id.
 void setSnapshotVersion(SnapshotVersion snapshotVersion)
          Set the snapshot version id.
 void setVersion(String version)
          Set the Version of the metadata.
 String toString()
          Method toString.
 void updateTimestamp()
           
 
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 metadata.


artifactId

private String artifactId
The Artifact ID of the metadata.


version

private String version
The Version of the metadata.


latestVersion

private String latestVersion
The latest version id.


releasedVersion

private String releasedVersion
The released version id.


snapshotVersion

private SnapshotVersion snapshotVersion
The snapshot version id.


plugins

private List<Plugin> plugins
Field plugins.


availableVersions

private List<String> availableVersions
Field availableVersions.


lastUpdated

private String lastUpdated
When the metadata was last updated.


fileLastModified

private Date fileLastModified
The Last Modified Timestamp of this file.


fileSize

private long fileSize
The size of the artifact on disk.


serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

ArchivaRepositoryMetadata

public ArchivaRepositoryMetadata()
Method Detail

addAvailableVersion

public void addAvailableVersion(String string)
Method addAvailableVersion.

Parameters:
string -

addPlugin

public void addPlugin(Plugin plugin)
Method addPlugin.

Parameters:
plugin -

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 metadata.

Returns:
String

getAvailableVersions

public List<String> getAvailableVersions()
Method getAvailableVersions.

Returns:
List

getFileLastModified

public Date getFileLastModified()
Get the Last Modified Timestamp of this file.

Returns:
Date

getFileSize

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

Returns:
long

getGroupId

public String getGroupId()
Get the Group ID of the metadata.

Returns:
String

getLastUpdated

public String getLastUpdated()
Get when the metadata was last updated.

Returns:
String

getLatestVersion

public String getLatestVersion()
Get the latest version id.

Returns:
String

getPlugins

public List<Plugin> getPlugins()
Method getPlugins.

Returns:
List

getReleasedVersion

public String getReleasedVersion()
Get the released version id.

Returns:
String

getSnapshotVersion

public SnapshotVersion getSnapshotVersion()
Get the snapshot version id.

Returns:
SnapshotVersion

getVersion

public String getVersion()
Get the Version of the metadata.

Returns:
String

hashCode

public int hashCode()
Method hashCode.

Overrides:
hashCode in class Object
Returns:
int

removeAvailableVersion

public void removeAvailableVersion(String string)
Method removeAvailableVersion.

Parameters:
string -

removePlugin

public void removePlugin(Plugin plugin)
Method removePlugin.

Parameters:
plugin -

setArtifactId

public void setArtifactId(String artifactId)
Set the Artifact ID of the metadata.

Parameters:
artifactId -

setAvailableVersions

public void setAvailableVersions(List<String> availableVersions)
Set the list of available version ids.

Parameters:
availableVersions -

setFileLastModified

public void setFileLastModified(Date fileLastModified)
Set the Last Modified Timestamp of this file.

Parameters:
fileLastModified -

setFileSize

public void setFileSize(long fileSize)
Set the size of the artifact on disk.

Parameters:
fileSize -

setGroupId

public void setGroupId(String groupId)
Set the Group ID of the metadata.

Parameters:
groupId -

setLastUpdated

public void setLastUpdated(String lastUpdated)
Set when the metadata was last updated.

Parameters:
lastUpdated -

setLatestVersion

public void setLatestVersion(String latestVersion)
Set the latest version id.

Parameters:
latestVersion -

setPlugins

public void setPlugins(List<Plugin> plugins)
Set the available plugins.

Parameters:
plugins -

setReleasedVersion

public void setReleasedVersion(String releasedVersion)
Set the released version id.

Parameters:
releasedVersion -

setSnapshotVersion

public void setSnapshotVersion(SnapshotVersion snapshotVersion)
Set the snapshot version id.

Parameters:
snapshotVersion -

setVersion

public void setVersion(String version)
Set the Version of the metadata.

Parameters:
version -

toString

public String toString()
Method toString.

Overrides:
toString in class Object
Returns:
String

updateTimestamp

public void updateTimestamp()

setLastUpdatedTimestamp

public void setLastUpdatedTimestamp(Date date)


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