Interface RepositoryMetadata
-
- All Superinterfaces:
ArtifactMetadata,ArtifactMetadata
- All Known Implementing Classes:
AbstractRepositoryMetadata,ArtifactRepositoryMetadata,GroupRepositoryMetadata,SnapshotArtifactRepositoryMetadata
public interface RepositoryMetadata extends ArtifactMetadata
Describes repository directory metadata.
-
-
Field Summary
Fields Modifier and Type Field Description static intRELEASEstatic intRELEASE_OR_SNAPSHOTstatic intSNAPSHOT
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MetadatagetMetadata()Get the repository metadata associated with this marker.intgetNature()Gets the artifact quality this metadata refers to.ArtifactRepositoryPolicygetPolicy(ArtifactRepository repository)Gets the policy that applies to this metadata regarding the specified repository.ArtifactRepositorygetRepository()Get the repository the metadata was located in.booleanisSnapshot()Whether this represents a snapshot.voidsetMetadata(Metadata metadata)Set the metadata contents.voidsetRepository(ArtifactRepository remoteRepository)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 Detail
-
RELEASE
static final int RELEASE
- See Also:
- Constant Field Values
-
SNAPSHOT
static final int SNAPSHOT
- See Also:
- Constant Field Values
-
RELEASE_OR_SNAPSHOT
static final int RELEASE_OR_SNAPSHOT
- See Also:
- Constant Field Values
-
-
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
nullif 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()
- 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 benull.- Returns:
- The policy, never
null.
-
-