public interface RepositoryMetadata extends ArtifactMetadata
Modifier and Type | Field and Description |
---|---|
static int |
RELEASE |
static int |
RELEASE_OR_SNAPSHOT |
static int |
SNAPSHOT |
Modifier and Type | Method and Description |
---|---|
Metadata |
getMetadata()
Get the repository metadata associated with this marker.
|
int |
getNature()
Gets the artifact quality this metadata refers to.
|
ArtifactRepositoryPolicy |
getPolicy(ArtifactRepository repository)
Gets the policy that applies to this metadata regarding the specified repository.
|
ArtifactRepository |
getRepository()
Get the repository the metadata was located in.
|
boolean |
isSnapshot()
Whether this represents a snapshot.
|
void |
setMetadata(Metadata metadata)
Set the metadata contents.
|
void |
setRepository(ArtifactRepository remoteRepository)
Set the repository the metadata was located in.
|
merge
extendedToString, getArtifactId, getBaseVersion, getGroupId, getKey, getLocalFilename, getRemoteFilename, merge, storedInArtifactVersionDirectory, storedInGroupDirectory, storeInLocalRepository
static final int RELEASE
static final int SNAPSHOT
static final int RELEASE_OR_SNAPSHOT
ArtifactRepository getRepository()
void setRepository(ArtifactRepository remoteRepository)
remoteRepository
- the repositoryMetadata getMetadata()
null
if none loadedvoid setMetadata(Metadata metadata)
metadata
- the metadataboolean isSnapshot()
int getNature()
ArtifactRepositoryPolicy getPolicy(ArtifactRepository repository)
repository
- The repository for which to determine the policy, must not be null
.null
.Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.