Interface RepositoryMetadata

All Superinterfaces:
org.apache.maven.artifact.metadata.ArtifactMetadata, org.apache.maven.repository.legacy.metadata.ArtifactMetadata
All Known Implementing Classes:
AbstractRepositoryMetadata, ArtifactRepositoryMetadata, GroupRepositoryMetadata, SnapshotArtifactRepositoryMetadata

@Deprecated public interface RepositoryMetadata extends org.apache.maven.artifact.metadata.ArtifactMetadata
Deprecated.
Describes repository directory metadata. TODO not happy about the store method - they use "this"
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Deprecated.
     
    static final int
    Deprecated.
     
    static final int
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.maven.artifact.repository.metadata.Metadata
    Deprecated.
    Get the repository metadata associated with this marker.
    int
    Deprecated.
    Gets the artifact quality this metadata refers to.
    org.apache.maven.artifact.repository.ArtifactRepositoryPolicy
    getPolicy(org.apache.maven.artifact.repository.ArtifactRepository repository)
    Deprecated.
    Gets the policy that applies to this metadata regarding the specified repository.
    org.apache.maven.artifact.repository.ArtifactRepository
    Deprecated.
    Get the repository the metadata was located in.
    boolean
    Deprecated.
    Whether this represents a snapshot.
    void
    setMetadata(org.apache.maven.artifact.repository.metadata.Metadata metadata)
    Deprecated.
    Set the metadata contents.
    void
    setRepository(org.apache.maven.artifact.repository.ArtifactRepository remoteRepository)
    Deprecated.
    Set the repository the metadata was located in.

    Methods inherited from interface org.apache.maven.artifact.metadata.ArtifactMetadata

    merge

    Methods inherited from interface org.apache.maven.repository.legacy.metadata.ArtifactMetadata

    extendedToString, getArtifactId, getBaseVersion, getGroupId, getKey, getLocalFilename, getRemoteFilename, merge, storedInArtifactVersionDirectory, storedInGroupDirectory, storeInLocalRepository
  • Field Details

  • Method Details

    • getRepository

      org.apache.maven.artifact.repository.ArtifactRepository getRepository()
      Deprecated.
      Get the repository the metadata was located in.
      Returns:
      the repository
    • setRepository

      void setRepository(org.apache.maven.artifact.repository.ArtifactRepository remoteRepository)
      Deprecated.
      Set the repository the metadata was located in.
      Parameters:
      remoteRepository - the repository
    • getMetadata

      org.apache.maven.artifact.repository.metadata.Metadata getMetadata()
      Deprecated.
      Get the repository metadata associated with this marker.
      Returns:
      the metadata, or null if none loaded
    • setMetadata

      void setMetadata(org.apache.maven.artifact.repository.metadata.Metadata metadata)
      Deprecated.
      Set the metadata contents.
      Parameters:
      metadata - the metadata
    • isSnapshot

      boolean isSnapshot()
      Deprecated.
      Whether this represents a snapshot.
      Returns:
      if it is a snapshot
    • getNature

      int getNature()
      Deprecated.
      Gets the artifact quality this metadata refers to. One of RELEASE, SNAPSHOT or RELEASE_OR_SNAPSHOT.
      Returns:
      The artifact quality this metadata refers to.
    • getPolicy

      org.apache.maven.artifact.repository.ArtifactRepositoryPolicy getPolicy(org.apache.maven.artifact.repository.ArtifactRepository repository)
      Deprecated.
      Gets the policy that applies to this metadata regarding the specified repository.
      Parameters:
      repository - The repository for which to determine the policy, must not be null.
      Returns:
      The policy, never null.