public abstract class AbstractRepositoryMetadata extends Object implements RepositoryMetadata
RELEASE, RELEASE_OR_SNAPSHOT, SNAPSHOT
Modifier | Constructor and Description |
---|---|
protected |
AbstractRepositoryMetadata(Metadata metadata) |
Modifier and Type | Method and Description |
---|---|
protected static Metadata |
createMetadata(Artifact artifact,
Versioning versioning) |
protected static Versioning |
createVersioning(Snapshot snapshot) |
String |
extendedToString() |
String |
getLocalFilename(ArtifactRepository repository) |
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.
|
String |
getRemoteFilename() |
void |
merge(ArtifactMetadata metadata) |
void |
merge(ArtifactMetadata metadata) |
void |
setMetadata(Metadata metadata)
Set the metadata contents.
|
void |
storeInLocalRepository(ArtifactRepository localRepository,
ArtifactRepository remoteRepository) |
String |
toString() |
protected void |
updateRepositoryMetadata(ArtifactRepository localRepository,
ArtifactRepository remoteRepository) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getRepository, isSnapshot, setRepository
getArtifactId, getBaseVersion, getGroupId, getKey, storedInArtifactVersionDirectory, storedInGroupDirectory
protected AbstractRepositoryMetadata(Metadata metadata)
public String getRemoteFilename()
getRemoteFilename
in interface ArtifactMetadata
public String getLocalFilename(ArtifactRepository repository)
getLocalFilename
in interface ArtifactMetadata
public void storeInLocalRepository(ArtifactRepository localRepository, ArtifactRepository remoteRepository) throws RepositoryMetadataStoreException
storeInLocalRepository
in interface ArtifactMetadata
RepositoryMetadataStoreException
protected void updateRepositoryMetadata(ArtifactRepository localRepository, ArtifactRepository remoteRepository) throws IOException, XmlPullParserException
IOException
XmlPullParserException
protected static Metadata createMetadata(Artifact artifact, Versioning versioning)
protected static Versioning createVersioning(Snapshot snapshot)
public void setMetadata(Metadata metadata)
RepositoryMetadata
setMetadata
in interface RepositoryMetadata
metadata
- the metadatapublic Metadata getMetadata()
RepositoryMetadata
getMetadata
in interface RepositoryMetadata
null
if none loadedpublic void merge(ArtifactMetadata metadata)
merge
in interface ArtifactMetadata
public void merge(ArtifactMetadata metadata)
public String extendedToString()
extendedToString
in interface ArtifactMetadata
public int getNature()
RepositoryMetadata
RepositoryMetadata.RELEASE
, RepositoryMetadata.SNAPSHOT
or
RepositoryMetadata.RELEASE_OR_SNAPSHOT
.getNature
in interface RepositoryMetadata
public ArtifactRepositoryPolicy getPolicy(ArtifactRepository repository)
RepositoryMetadata
getPolicy
in interface RepositoryMetadata
repository
- The repository for which to determine the policy, must not be null
.null
.Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.