Interface RepositoryMetadata
- All Superinterfaces:
org.apache.maven.artifact.metadata.ArtifactMetadata, org.apache.maven.repository.legacy.metadata.ArtifactMetadata
- All Known Implementing Classes:
AbstractRepositoryMetadata, ArtifactRepositoryMetadata
public interface RepositoryMetadata
extends org.apache.maven.artifact.metadata.ArtifactMetadata
Describes repository directory metadata.
- Author:
- Brett Porter TODO not happy about the store method - they use "this"
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.maven.artifact.repository.metadata.MetadataGet the repository metadata associated with this marker.intGets the artifact quality this metadata refers to.org.apache.maven.artifact.repository.ArtifactRepositoryPolicygetPolicy(org.apache.maven.artifact.repository.ArtifactRepository repository) Gets the policy that applies to this metadata regarding the specified repository.org.apache.maven.artifact.repository.ArtifactRepositoryGet the repository the metadata was located in.booleanWhether this represents a snapshot.voidsetMetadata(org.apache.maven.artifact.repository.metadata.Metadata metadata) Set the metadata contents.voidsetRepository(org.apache.maven.artifact.repository.ArtifactRepository remoteRepository) Set the repository the metadata was located in.Methods inherited from interface org.apache.maven.artifact.metadata.ArtifactMetadata
mergeMethods inherited from interface org.apache.maven.repository.legacy.metadata.ArtifactMetadata
extendedToString, getArtifactId, getBaseVersion, getGroupId, getKey, getLocalFilename, getRemoteFilename, merge, storedInArtifactVersionDirectory, storedInGroupDirectory, storeInLocalRepository
-
Field Details
-
RELEASE
static final int RELEASE- See Also:
-
SNAPSHOT
static final int SNAPSHOT- See Also:
-
RELEASE_OR_SNAPSHOT
static final int RELEASE_OR_SNAPSHOT- See Also:
-
-
Method Details
-
getRepository
org.apache.maven.artifact.repository.ArtifactRepository getRepository()Get the repository the metadata was located in.- Returns:
- the repository
-
setRepository
void setRepository(org.apache.maven.artifact.repository.ArtifactRepository remoteRepository) Set the repository the metadata was located in.- Parameters:
remoteRepository- the repository
-
getMetadata
org.apache.maven.artifact.repository.metadata.Metadata getMetadata()Get the repository metadata associated with this marker.- Returns:
- the metadata, or
nullif none loaded
-
setMetadata
void setMetadata(org.apache.maven.artifact.repository.metadata.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()- Returns:
- The artifact quality this metadata refers to.
-
getPolicy
org.apache.maven.artifact.repository.ArtifactRepositoryPolicy getPolicy(org.apache.maven.artifact.repository.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 benull.- Returns:
- The policy, never
null.
-