org.apache.maven.project.artifact
Class ProjectArtifactMetadata

java.lang.Object
  extended by org.apache.maven.artifact.metadata.AbstractArtifactMetadata
      extended by org.apache.maven.project.artifact.ProjectArtifactMetadata
All Implemented Interfaces:
ArtifactMetadata

public class ProjectArtifactMetadata
extends AbstractArtifactMetadata

Attach a POM to an artifact.

Version:
$Id: ProjectArtifactMetadata.java 745955 2009-02-19 18:39:09Z jdcasey $
Author:
Brett Porter

Field Summary
 
Fields inherited from class org.apache.maven.artifact.metadata.AbstractArtifactMetadata
artifact
 
Constructor Summary
ProjectArtifactMetadata(Artifact artifact)
           
ProjectArtifactMetadata(Artifact artifact, File file)
           
 
Method Summary
 String getBaseVersion()
           
 File getFile()
           
 Object getKey()
           
 String getLocalFilename(ArtifactRepository repository)
           
 String getRemoteFilename()
           
 boolean isVersionExpressionsResolved()
           
 void merge(ArtifactMetadata metadata)
           
 void setFile(File file)
           
 void setVersionExpressionsResolved(boolean versionExpressionsResolved)
           
 boolean storedInArtifactVersionDirectory()
           
 void storeInLocalRepository(ArtifactRepository localRepository, ArtifactRepository remoteRepository)
           
 String toString()
           
 
Methods inherited from class org.apache.maven.artifact.metadata.AbstractArtifactMetadata
extendedToString, getArtifactId, getGroupId, storedInGroupDirectory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProjectArtifactMetadata

public ProjectArtifactMetadata(Artifact artifact)

ProjectArtifactMetadata

public ProjectArtifactMetadata(Artifact artifact,
                               File file)
Method Detail

getRemoteFilename

public String getRemoteFilename()

getLocalFilename

public String getLocalFilename(ArtifactRepository repository)

storeInLocalRepository

public void storeInLocalRepository(ArtifactRepository localRepository,
                                   ArtifactRepository remoteRepository)
                            throws RepositoryMetadataStoreException
Throws:
RepositoryMetadataStoreException

toString

public String toString()
Overrides:
toString in class Object

storedInArtifactVersionDirectory

public boolean storedInArtifactVersionDirectory()

getBaseVersion

public String getBaseVersion()

getKey

public Object getKey()

merge

public void merge(ArtifactMetadata metadata)

isVersionExpressionsResolved

public boolean isVersionExpressionsResolved()

setVersionExpressionsResolved

public void setVersionExpressionsResolved(boolean versionExpressionsResolved)

setFile

public void setFile(File file)

getFile

public File getFile()


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