|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.artifact.repository.metadata.AbstractRepositoryMetadata
public abstract class AbstractRepositoryMetadata
Shared methods of the repository metadata handling.
Field Summary |
---|
Fields inherited from interface org.apache.maven.artifact.repository.metadata.RepositoryMetadata |
---|
RELEASE, RELEASE_OR_SNAPSHOT, SNAPSHOT |
Constructor Summary | |
---|---|
protected |
AbstractRepositoryMetadata(Metadata metadata)
|
Method Summary | |
---|---|
protected static Metadata |
createMetadata(Artifact artifact,
Versioning versioning)
|
protected static Versioning |
createVersioning(Snapshot snapshot)
|
String |
extendedToString()
|
String |
getLocalFilename(ArtifactRepository repository)
Get the filename of this metadata on the local 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()
Get the filename of this metadata on the remote repository. |
void |
merge(ArtifactMetadata metadata)
Merge a new metadata set into this piece of metadata. |
void |
merge(ArtifactMetadata metadata)
|
void |
setMetadata(Metadata metadata)
Set the metadata contents. |
void |
storeInLocalRepository(ArtifactRepository localRepository,
ArtifactRepository remoteRepository)
Store the metadata in the local repository. |
String |
toString()
|
protected void |
updateRepositoryMetadata(ArtifactRepository localRepository,
ArtifactRepository remoteRepository)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.maven.artifact.repository.metadata.RepositoryMetadata |
---|
getRepository, isSnapshot, setRepository |
Methods inherited from interface org.apache.maven.repository.legacy.metadata.ArtifactMetadata |
---|
getArtifactId, getBaseVersion, getGroupId, getKey, storedInArtifactVersionDirectory, storedInGroupDirectory |
Constructor Detail |
---|
protected AbstractRepositoryMetadata(Metadata metadata)
Method Detail |
---|
public String getRemoteFilename()
ArtifactMetadata
getRemoteFilename
in interface ArtifactMetadata
public String getLocalFilename(ArtifactRepository repository)
ArtifactMetadata
getLocalFilename
in interface ArtifactMetadata
repository
- the remote repository it came from
public void storeInLocalRepository(ArtifactRepository localRepository, ArtifactRepository remoteRepository) throws RepositoryMetadataStoreException
ArtifactMetadata
storeInLocalRepository
in interface ArtifactMetadata
localRepository
- the local repositoryremoteRepository
- the remote repository it came from
RepositoryMetadataStoreException
protected void updateRepositoryMetadata(ArtifactRepository localRepository, ArtifactRepository remoteRepository) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
public String toString()
toString
in class Object
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)
ArtifactMetadata
merge
in interface ArtifactMetadata
metadata
- the new metadatapublic 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
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |