|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.archiva.metadata.model.FacetedMetadata org.apache.archiva.metadata.model.ArtifactMetadata
public class ArtifactMetadata
Metadata stored in the content repository for a particular artifact. Information that is shared between different
artifacts of a given project version can be found in the
ProjectVersionMetadata
class. The metadata is faceted to store information
about particular types of artifacts, for example Maven 2.x artifact specific information.
For more information, see the
Metadata Content Model.
Field Summary | |
---|---|
private Date |
fileLastModified
The last modified date of the artifact file, if known. |
private String |
id
The artifact ID uniquely identifies an artifact within a given namespace, project and project version. |
private String |
md5
The MD5 checksum of the artifact, if calculated. |
private String |
namespace
The namespace of the project within the repository. |
private String |
project
The identifier of the project within the repository and namespace. |
private String |
projectVersion
The version of the project. |
private String |
repositoryId
The repository that the artifact is stored in within the content repository. |
private String |
sha1
The SHA-1 checksum of the artifact, if calculated. |
private long |
size
The file size of the artifact, if known. |
private String |
version
The artifact version, if different from the project version. |
private Date |
whenGathered
When the artifact was found in the repository storage and added to the metadata content repository. |
Constructor Summary | |
---|---|
ArtifactMetadata()
|
Method Summary | |
---|---|
boolean |
equals(Object o)
|
Date |
getFileLastModified()
|
String |
getId()
|
String |
getMd5()
|
String |
getNamespace()
|
String |
getProject()
|
String |
getProjectVersion()
|
String |
getRepositoryId()
|
String |
getSha1()
|
long |
getSize()
|
String |
getVersion()
|
Date |
getWhenGathered()
|
int |
hashCode()
|
void |
setFileLastModified(long fileLastModified)
|
void |
setId(String id)
|
void |
setMd5(String md5)
|
void |
setNamespace(String namespace)
|
void |
setProject(String project)
|
void |
setProjectVersion(String projectVersion)
|
void |
setRepositoryId(String repositoryId)
|
void |
setSha1(String sha1)
|
void |
setSize(long size)
|
void |
setVersion(String version)
|
void |
setWhenGathered(Date whenGathered)
|
String |
toString()
|
Methods inherited from class org.apache.archiva.metadata.model.FacetedMetadata |
---|
addFacet, getFacet, getFacetIds, getFacetList, getFacets, removeFacet |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private String id
private String repositoryId
private String namespace
ProjectMetadata.namespace
private String project
ProjectMetadata.id
private String projectVersion
ProjectVersionMetadata.id
private String version
private Date fileLastModified
private long size
private String md5
private String sha1
private Date whenGathered
Constructor Detail |
---|
public ArtifactMetadata()
Method Detail |
---|
public String getId()
public void setId(String id)
public long getSize()
public void setSize(long size)
public String getVersion()
public void setVersion(String version)
public String getProjectVersion()
public void setProjectVersion(String projectVersion)
public void setFileLastModified(long fileLastModified)
public void setWhenGathered(Date whenGathered)
public void setMd5(String md5)
public void setSha1(String sha1)
public Date getWhenGathered()
public String getMd5()
public String getSha1()
public Date getFileLastModified()
public String getNamespace()
public void setNamespace(String namespace)
public void setProject(String project)
public String getProject()
public String getRepositoryId()
public void setRepositoryId(String repositoryId)
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |