org.apache.maven.artifact.metadata

Interface ArtifactMetadata

public interface ArtifactMetadata

Contains metadata about an artifact, and methods to retrieve/store it from an artifact repository.

Version: $Id: ArtifactMetadata.java 320683 2005-10-13 08:04:27Z brett $

Author: Brett Porter

UNKNOWN: merge with artifactmetadatasource retrieval exception not appropriate for store

Method Summary
StringextendedToString()
StringgetArtifactId()
StringgetBaseVersion()
StringgetGroupId()
ObjectgetKey()
StringgetLocalFilename(ArtifactRepository repository)
Get the filename of this metadata on the local repository.
StringgetRemoteFilename()
Get the filename of this metadata on the remote repository.
voidmerge(ArtifactMetadata metadata)
Merge a new metadata set into this piece of metadata.
booleanstoredInArtifactVersionDirectory()
Whether this metadata should be stored alongside the artifact.
booleanstoredInGroupDirectory()
Whether this metadata should be stored alongside the group.
voidstoreInLocalRepository(ArtifactRepository localRepository, ArtifactRepository remoteRepository)
Store the metadata in the local repository.

Method Detail

extendedToString

public String extendedToString()

getArtifactId

public String getArtifactId()

getBaseVersion

public String getBaseVersion()

getGroupId

public String getGroupId()

getKey

public Object getKey()

getLocalFilename

public String getLocalFilename(ArtifactRepository repository)
Get the filename of this metadata on the local repository.

Parameters: repository the remote repository it came from

Returns: the filename

getRemoteFilename

public String getRemoteFilename()
Get the filename of this metadata on the remote repository.

Returns: the filename

merge

public void merge(ArtifactMetadata metadata)
Merge a new metadata set into this piece of metadata.

Parameters: metadata the new metadata

UNKNOWN: this should only be needed on the repository metadata

storedInArtifactVersionDirectory

public boolean storedInArtifactVersionDirectory()
Whether this metadata should be stored alongside the artifact.

storedInGroupDirectory

public boolean storedInGroupDirectory()
Whether this metadata should be stored alongside the group.

storeInLocalRepository

public void storeInLocalRepository(ArtifactRepository localRepository, ArtifactRepository remoteRepository)
Store the metadata in the local repository.

Parameters: localRepository the local repository remoteRepository the remote repository it came from

UNKNOWN: this should only be needed on the repository metadata

Copyright © 2001-2009 Apache Software Foundation. All Rights Reserved.