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 Summary
Fields inherited from interface org.apache.maven.artifact.repository.metadata.RepositoryMetadata
RELEASE, RELEASE_OR_SNAPSHOT, SNAPSHOT
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractRepositoryMetadata
(Metadata metadata) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected static Metadata
createMetadata
(Artifact artifact, Versioning versioning) Deprecated.protected static Versioning
createVersioning
(Snapshot snapshot) Deprecated.Deprecated.getLocalFilename
(ArtifactRepository repository) Deprecated.Deprecated.Get the repository metadata associated with this marker.int
Deprecated.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.void
merge
(ArtifactMetadata metadata) Deprecated.void
merge
(ArtifactMetadata metadata) Deprecated.void
setMetadata
(Metadata metadata) Deprecated.Set the metadata contents.void
storeInLocalRepository
(ArtifactRepository localRepository, ArtifactRepository remoteRepository) Deprecated.toString()
Deprecated.protected void
updateRepositoryMetadata
(ArtifactRepository localRepository, ArtifactRepository remoteRepository) Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.maven.repository.legacy.metadata.ArtifactMetadata
getArtifactId, getBaseVersion, getGroupId, getKey, storedInArtifactVersionDirectory, storedInGroupDirectory
Methods inherited from interface org.apache.maven.artifact.repository.metadata.RepositoryMetadata
getRepository, isSnapshot, setRepository
-
Constructor Details
-
AbstractRepositoryMetadata
Deprecated.
-
-
Method Details
-
getRemoteFilename
Deprecated.- Specified by:
getRemoteFilename
in interfaceArtifactMetadata
-
getLocalFilename
Deprecated.- Specified by:
getLocalFilename
in interfaceArtifactMetadata
-
storeInLocalRepository
public void storeInLocalRepository(ArtifactRepository localRepository, ArtifactRepository remoteRepository) throws RepositoryMetadataStoreException Deprecated.- Specified by:
storeInLocalRepository
in interfaceArtifactMetadata
- Throws:
RepositoryMetadataStoreException
-
updateRepositoryMetadata
protected void updateRepositoryMetadata(ArtifactRepository localRepository, ArtifactRepository remoteRepository) throws IOException, XMLStreamException Deprecated.- Throws:
IOException
XMLStreamException
-
toString
Deprecated. -
createMetadata
Deprecated. -
createVersioning
Deprecated. -
setMetadata
Deprecated.Description copied from interface:RepositoryMetadata
Set the metadata contents.- Specified by:
setMetadata
in interfaceRepositoryMetadata
- Parameters:
metadata
- the metadata
-
getMetadata
Deprecated.Description copied from interface:RepositoryMetadata
Get the repository metadata associated with this marker.- Specified by:
getMetadata
in interfaceRepositoryMetadata
- Returns:
- the metadata, or
null
if none loaded
-
merge
Deprecated.- Specified by:
merge
in interfaceArtifactMetadata
-
merge
Deprecated.- Specified by:
merge
in interfaceArtifactMetadata
-
extendedToString
Deprecated.- Specified by:
extendedToString
in interfaceArtifactMetadata
-
getNature
public int getNature()Deprecated.Description copied from interface:RepositoryMetadata
Gets the artifact quality this metadata refers to. One ofRepositoryMetadata.RELEASE
,RepositoryMetadata.SNAPSHOT
orRepositoryMetadata.RELEASE_OR_SNAPSHOT
.- Specified by:
getNature
in interfaceRepositoryMetadata
- Returns:
- The artifact quality this metadata refers to.
-
getPolicy
Deprecated.Description copied from interface:RepositoryMetadata
Gets the policy that applies to this metadata regarding the specified repository.- Specified by:
getPolicy
in interfaceRepositoryMetadata
- Parameters:
repository
- The repository for which to determine the policy, must not benull
.- Returns:
- The policy, never
null
.
-