public abstract class AbstractRepositoryMetadata extends Object implements RepositoryMetadata
RELEASE, RELEASE_OR_SNAPSHOT, SNAPSHOT| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRepositoryMetadata(Metadata metadata) |
| Modifier and Type | Method and Description |
|---|---|
protected static Metadata |
createMetadata(Artifact artifact,
Versioning versioning) |
protected static Versioning |
createVersioning(Snapshot snapshot) |
String |
extendedToString() |
String |
getLocalFilename(ArtifactRepository repository)
Get the filename of this metadata on the local repository.
|
Metadata |
getMetadata()
Get the repository metadata associated with this marker.
|
int |
getNature()
Gets the artifact quality this metadata refers to.
|
ArtifactRepositoryPolicy |
getPolicy(ArtifactRepository repository)
Gets the policy that applies to this metadata regarding the specified repository.
|
String |
getRemoteFilename()
Get the filename of this metadata on the remote repository.
|
void |
merge(ArtifactMetadata metadata)
Merge a new metadata set into this piece of metadata.
|
void |
merge(ArtifactMetadata metadata) |
void |
setMetadata(Metadata metadata)
Set the metadata contents.
|
void |
storeInLocalRepository(ArtifactRepository localRepository,
ArtifactRepository remoteRepository)
Store the metadata in the local repository.
|
String |
toString() |
protected void |
updateRepositoryMetadata(ArtifactRepository localRepository,
ArtifactRepository remoteRepository) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetRepository, isSnapshot, setRepositorygetArtifactId, getBaseVersion, getGroupId, getKey, storedInArtifactVersionDirectory, storedInGroupDirectoryprotected AbstractRepositoryMetadata(Metadata metadata)
public String getRemoteFilename()
ArtifactMetadatagetRemoteFilename in interface ArtifactMetadatapublic String getLocalFilename(ArtifactRepository repository)
ArtifactMetadatagetLocalFilename in interface ArtifactMetadatarepository - the remote repository it came frompublic void storeInLocalRepository(ArtifactRepository localRepository, ArtifactRepository remoteRepository) throws RepositoryMetadataStoreException
ArtifactMetadataArtifactMetadatastoreInLocalRepository in interface ArtifactMetadatalocalRepository - the local repositoryremoteRepository - the remote repository it came fromRepositoryMetadataStoreException - in case of issueprotected void updateRepositoryMetadata(ArtifactRepository localRepository, ArtifactRepository remoteRepository) throws IOException, XmlPullParserException
IOExceptionXmlPullParserExceptionprotected static Metadata createMetadata(Artifact artifact, Versioning versioning)
protected static Versioning createVersioning(Snapshot snapshot)
public void setMetadata(Metadata metadata)
RepositoryMetadatasetMetadata in interface RepositoryMetadatametadata - the metadatapublic Metadata getMetadata()
RepositoryMetadatagetMetadata in interface RepositoryMetadatanull if none loadedpublic void merge(ArtifactMetadata metadata)
ArtifactMetadataArtifactMetadatamerge in interface ArtifactMetadatametadata - the new metadatapublic void merge(ArtifactMetadata metadata)
public String extendedToString()
extendedToString in interface ArtifactMetadatapublic int getNature()
RepositoryMetadataRepositoryMetadata.RELEASE, RepositoryMetadata.SNAPSHOT or
RepositoryMetadata.RELEASE_OR_SNAPSHOT.getNature in interface RepositoryMetadatapublic ArtifactRepositoryPolicy getPolicy(ArtifactRepository repository)
RepositoryMetadatagetPolicy in interface RepositoryMetadatarepository - The repository for which to determine the policy, must not be null.null.Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.