|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RepositoryMetadata
Describes repository directory metadata.
Field Summary | |
---|---|
static int |
RELEASE
|
static int |
RELEASE_OR_SNAPSHOT
|
static int |
SNAPSHOT
|
Method Summary | |
---|---|
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. |
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 |
---|
static final int RELEASE
static final int SNAPSHOT
static final int RELEASE_OR_SNAPSHOT
Method Detail |
---|
ArtifactRepository getRepository()
void setRepository(ArtifactRepository remoteRepository)
remoteRepository
- the repositoryMetadata getMetadata()
null
if none loadedvoid setMetadata(Metadata metadata)
metadata
- the metadataboolean isSnapshot()
int getNature()
RELEASE
, SNAPSHOT
or
RELEASE_OR_SNAPSHOT
.
ArtifactRepositoryPolicy getPolicy(ArtifactRepository repository)
repository
- The repository for which to determine the policy, must not be null
.
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |