Interface RepositoryMetadata
- All Superinterfaces:
- ArtifactMetadata,- ArtifactMetadata
- All Known Implementing Classes:
- AbstractRepositoryMetadata,- ArtifactRepositoryMetadata,- GroupRepositoryMetadata,- SnapshotArtifactRepositoryMetadata
Describes repository directory metadata.
- Author:
- Brett Porter TODO not happy about the store method - they use "this"
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int
- 
Method SummaryModifier and TypeMethodDescriptionGet the repository metadata associated with this marker.intGets the artifact quality this metadata refers to.getPolicy(ArtifactRepository repository) Gets the policy that applies to this metadata regarding the specified repository.Get the repository the metadata was located in.booleanWhether 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.ArtifactMetadatamergeMethods inherited from interface org.apache.maven.repository.legacy.metadata.ArtifactMetadataextendedToString, getArtifactId, getBaseVersion, getGroupId, getKey, getLocalFilename, getRemoteFilename, merge, storedInArtifactVersionDirectory, storedInGroupDirectory, storeInLocalRepository
- 
Field Details- 
RELEASEstatic final int RELEASE- See Also:
 
- 
SNAPSHOTstatic final int SNAPSHOT- See Also:
 
- 
RELEASE_OR_SNAPSHOTstatic final int RELEASE_OR_SNAPSHOT- See Also:
 
 
- 
- 
Method Details- 
getRepositoryArtifactRepository getRepository()Get the repository the metadata was located in.- Returns:
- the repository
 
- 
setRepositorySet the repository the metadata was located in.- Parameters:
- remoteRepository- the repository
 
- 
getMetadataMetadata getMetadata()Get the repository metadata associated with this marker.- Returns:
- the metadata, or nullif none loaded
 
- 
setMetadataSet the metadata contents.- Parameters:
- metadata- the metadata
 
- 
isSnapshotboolean isSnapshot()Whether this represents a snapshot.- Returns:
- if it is a snapshot
 
- 
getNatureint getNature()- Returns:
- The artifact quality this metadata refers to.
 
- 
getPolicyGets 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.
 
 
-