Interface RepositoryMetadata

    • Method Detail

      • getRepository

        ArtifactRepository getRepository()
        Get the repository the metadata was located in.
        Returns:
        the repository
      • setRepository

        void setRepository​(ArtifactRepository remoteRepository)
        Set the repository the metadata was located in.
        Parameters:
        remoteRepository - the repository
      • getMetadata

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

        void setMetadata​(Metadata metadata)
        Set the metadata contents.
        Parameters:
        metadata - the metadata
      • isSnapshot

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

        int getNature()
        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

        ArtifactRepositoryPolicy getPolicy​(ArtifactRepository repository)
        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.