public class ArtifactMetadata extends FacetedMetadata
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.Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
ArtifactMetadata() |
Modifier and Type | Method and Description |
---|---|
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() |
addFacet, getFacet, getFacetIds, getFacetList, getFacets, removeFacet
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 Date whenGathered
public ArtifactMetadata()
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 Date getWhenGathered()
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)
Copyright © 2006–2023 The Apache Software Foundation. All rights reserved.