public abstract class AbstractRepositoryMetadata extends java.lang.Object implements RepositoryMetadata
| 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) |
java.lang.String |
extendedToString() |
java.lang.String |
getLocalFilename(ArtifactRepository repository)
Get the filename of this metadata on the local repository.
|
Metadata |
getMetadata()
Get the repository metadata associated with this marker.
|
java.lang.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 |
setMetadata(Metadata metadata)
Set the metadata contents.
|
void |
storeInLocalRepository(ArtifactRepository localRepository,
ArtifactRepository remoteRepository)
Store the metadata in the local repository.
|
java.lang.String |
toString() |
protected void |
updateRepositoryMetadata(ArtifactRepository localRepository,
ArtifactRepository remoteRepository) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisSnapshot, setRepositorygetArtifactId, getBaseVersion, getGroupId, getKey, storedInArtifactVersionDirectory, storedInGroupDirectoryprotected AbstractRepositoryMetadata(Metadata metadata)
public java.lang.String getRemoteFilename()
ArtifactMetadatagetRemoteFilename in interface ArtifactMetadatapublic java.lang.String getLocalFilename(ArtifactRepository repository)
ArtifactMetadatagetLocalFilename in interface ArtifactMetadatarepository - the remote repository it came frompublic void storeInLocalRepository(ArtifactRepository localRepository, ArtifactRepository remoteRepository) throws RepositoryMetadataStoreException
ArtifactMetadatastoreInLocalRepository in interface ArtifactMetadatalocalRepository - the local repositoryremoteRepository - the remote repository it came fromRepositoryMetadataStoreExceptionprotected void updateRepositoryMetadata(ArtifactRepository localRepository, ArtifactRepository remoteRepository) throws java.io.IOException, XmlPullParserException
java.io.IOExceptionXmlPullParserExceptionpublic java.lang.String toString()
toString in class java.lang.Objectprotected 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)
ArtifactMetadatamerge in interface ArtifactMetadatametadata - the new metadatapublic java.lang.String extendedToString()
extendedToString in interface ArtifactMetadata