Class AbstractRepositoryMetadata
java.lang.Object
org.apache.maven.artifact.repository.metadata.AbstractRepositoryMetadata
- All Implemented Interfaces:
- ArtifactMetadata,- RepositoryMetadata,- ArtifactMetadata
- Direct Known Subclasses:
- ArtifactRepositoryMetadata,- GroupRepositoryMetadata,- SnapshotArtifactRepositoryMetadata
@Deprecated
public abstract class AbstractRepositoryMetadata
extends Object
implements RepositoryMetadata
Deprecated.
Shared methods of the repository metadata handling.
- 
Field SummaryFields inherited from interface org.apache.maven.artifact.repository.metadata.RepositoryMetadataRELEASE, RELEASE_OR_SNAPSHOT, SNAPSHOT
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedAbstractRepositoryMetadata(Metadata metadata) Deprecated.
- 
Method SummaryModifier and TypeMethodDescriptionprotected static MetadatacreateMetadata(Artifact artifact, Versioning versioning) Deprecated.protected static VersioningcreateVersioning(Snapshot snapshot) Deprecated.Deprecated.getLocalFilename(ArtifactRepository repository) Deprecated.Get the filename of this metadata on the local repository.Deprecated.Get the repository metadata associated with this marker.intDeprecated.Gets the artifact quality this metadata refers to.getPolicy(ArtifactRepository repository) Deprecated.Gets the policy that applies to this metadata regarding the specified repository.Deprecated.Get the filename of this metadata on the remote repository.voidmerge(ArtifactMetadata metadata) Deprecated.voidmerge(ArtifactMetadata metadata) Deprecated.Merge a new metadata set into this piece of metadata.voidsetMetadata(Metadata metadata) Deprecated.Set the metadata contents.voidstoreInLocalRepository(ArtifactRepository localRepository, ArtifactRepository remoteRepository) Deprecated.Store the metadata in the local repository.toString()Deprecated.protected voidupdateRepositoryMetadata(ArtifactRepository localRepository, ArtifactRepository remoteRepository) Deprecated.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.maven.repository.legacy.metadata.ArtifactMetadatagetArtifactId, getBaseVersion, getGroupId, getKey, storedInArtifactVersionDirectory, storedInGroupDirectoryMethods inherited from interface org.apache.maven.artifact.repository.metadata.RepositoryMetadatagetRepository, isSnapshot, setRepository
- 
Constructor Details- 
AbstractRepositoryMetadataDeprecated.
 
- 
- 
Method Details- 
getRemoteFilenameDeprecated.Description copied from interface:ArtifactMetadataGet the filename of this metadata on the remote repository.- Specified by:
- getRemoteFilenamein interface- ArtifactMetadata
- Returns:
- the filename
 
- 
getLocalFilenameDeprecated.Description copied from interface:ArtifactMetadataGet the filename of this metadata on the local repository.- Specified by:
- getLocalFilenamein interface- ArtifactMetadata
- Parameters:
- repository- the remote repository it came from
- Returns:
- the filename
 
- 
storeInLocalRepositorypublic void storeInLocalRepository(ArtifactRepository localRepository, ArtifactRepository remoteRepository) throws RepositoryMetadataStoreException Deprecated.Description copied from interface:ArtifactMetadataStore the metadata in the local repository. TODO this should only be needed on the repository metadataArtifactMetadata- Specified by:
- storeInLocalRepositoryin interface- ArtifactMetadata
- Parameters:
- localRepository- the local repository
- remoteRepository- the remote repository it came from
- Throws:
- RepositoryMetadataStoreException- in case of issue
 
- 
updateRepositoryMetadataprotected void updateRepositoryMetadata(ArtifactRepository localRepository, ArtifactRepository remoteRepository) throws IOException, XMLStreamException Deprecated.- Throws:
- IOException
- XMLStreamException
 
- 
toStringDeprecated.
- 
createMetadataDeprecated.
- 
createVersioningDeprecated.
- 
setMetadataDeprecated.Description copied from interface:RepositoryMetadataSet the metadata contents.- Specified by:
- setMetadatain interface- RepositoryMetadata
- Parameters:
- metadata- the metadata
 
- 
getMetadataDeprecated.Description copied from interface:RepositoryMetadataGet the repository metadata associated with this marker.- Specified by:
- getMetadatain interface- RepositoryMetadata
- Returns:
- the metadata, or nullif none loaded
 
- 
mergeDeprecated.Description copied from interface:ArtifactMetadataMerge a new metadata set into this piece of metadata. TODO this should only be needed on the repository metadataArtifactMetadata- Specified by:
- mergein interface- ArtifactMetadata
- Parameters:
- metadata- the new metadata
 
- 
mergeDeprecated.- Specified by:
- mergein interface- ArtifactMetadata
 
- 
extendedToStringDeprecated.- Specified by:
- extendedToStringin interface- ArtifactMetadata
 
- 
getNaturepublic int getNature()Deprecated.Description copied from interface:RepositoryMetadataGets the artifact quality this metadata refers to. One ofRepositoryMetadata.RELEASE,RepositoryMetadata.SNAPSHOTorRepositoryMetadata.RELEASE_OR_SNAPSHOT.- Specified by:
- getNaturein interface- RepositoryMetadata
- Returns:
- The artifact quality this metadata refers to.
 
- 
getPolicyDeprecated.Description copied from interface:RepositoryMetadataGets the policy that applies to this metadata regarding the specified repository.- Specified by:
- getPolicyin interface- RepositoryMetadata
- Parameters:
- repository- The repository for which to determine the policy, must not be- null.
- Returns:
- The policy, never null.
 
 
-