public class Metadata
extends java.lang.Object
Metadata is a collection of Artifacts with unified metadata (including MRL) that are stored in the same "metadata.json" file.
All of the artifacts located within the metadata share the data defined at the metadata level such as name, description, and website. The key difference between the artifacts within the same metadata are the properties.
Repository| Constructor and Description |
|---|
Metadata() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getArtifactId()
Returns the artifactId.
|
java.util.List<Artifact> |
getArtifacts()
Returns all the artifacts in the metadata.
|
java.lang.String |
getChecksum()
Returns the metadata checksum.
|
java.lang.String |
getDescription()
Returns the description.
|
java.lang.String |
getGroupId()
Returns the groupId.
|
java.util.Date |
getLastUpdated()
Returns the last update date for the metadata.
|
java.lang.String |
getMetadataVersion()
Returns the metadata format version.
|
java.lang.String |
getName()
Returns the metadata-level name.
|
java.net.URI |
getRepositoryUri()
Returns the URI to the repository storing the metadata.
|
java.lang.String |
getWebsite()
Returns the website.
|
java.util.List<Artifact> |
search(VersionRange versionRange,
java.util.Map<java.lang.String,java.lang.String> filter)
Returns the artifacts matching the version and property requirements.
|
void |
setArtifactId(java.lang.String artifactId)
Sets the artifactId.
|
void |
setArtifacts(java.util.List<Artifact> artifacts)
Sets the artifacts for the metadata.
|
void |
setChecksum(java.lang.String checksum)
Sets the metadata checksum.
|
void |
setDescription(java.lang.String description)
Sets the description.
|
void |
setGroupId(java.lang.String groupId)
Sets the groupId.
|
void |
setLastUpdated(java.util.Date lastUpdated)
Sets the last update date for the metadata.
|
void |
setMetadataVersion(java.lang.String metadataVersion)
Sets the metadata format version.
|
void |
setName(java.lang.String name)
Sets the metadata-level name.
|
void |
setRepositoryUri(java.net.URI repositoryUri)
Sets the repository URI.
|
void |
setWebsite(java.lang.String website)
Sets the website.
|
public java.util.List<Artifact> search(VersionRange versionRange, java.util.Map<java.lang.String,java.lang.String> filter)
versionRange - the version range for the artifactfilter - the property filterpublic java.lang.String getMetadataVersion()
public void setMetadataVersion(java.lang.String metadataVersion)
metadataVersion - the new versionpublic java.lang.String getGroupId()
public void setGroupId(java.lang.String groupId)
groupId - the new groupIdpublic java.lang.String getArtifactId()
public void setArtifactId(java.lang.String artifactId)
artifactId - the new artifactIdpublic java.lang.String getName()
public void setName(java.lang.String name)
name - the new metadata-level namepublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the descriptionpublic java.lang.String getWebsite()
public void setWebsite(java.lang.String website)
website - the websitepublic java.util.List<Artifact> getArtifacts()
public void setArtifacts(java.util.List<Artifact> artifacts)
artifacts - the new artifactspublic java.lang.String getChecksum()
public void setChecksum(java.lang.String checksum)
checksum - the new checksumpublic java.util.Date getLastUpdated()
public void setLastUpdated(java.util.Date lastUpdated)
lastUpdated - the new last update datepublic java.net.URI getRepositoryUri()
public void setRepositoryUri(java.net.URI repositoryUri)
repositoryUri - the new URI