org.apache.maven.index
Class ArtifactContext

java.lang.Object
  extended by org.apache.maven.index.ArtifactContext

public class ArtifactContext
extends Object

An artifact context used to provide information about artifact during scanning. It is passed to the IndexCreator, which can populate ArtifactInfo for the given artifact.

Author:
Jason van Zyl, Tamas Cservenak
See Also:
IndexCreator.populateArtifactInfo(ArtifactContext), NexusIndexer.scan(IndexingContext)

Nested Class Summary
static class ArtifactContext.ModelReader
           
 
Constructor Summary
ArtifactContext(File pom, File artifact, File metadata, ArtifactInfo artifactInfo, Gav gav)
           
 
Method Summary
 void addError(Exception e)
           
 org.apache.lucene.document.Document createDocument(IndexingContext context)
          Creates Lucene Document using IndexCreators from the given IndexingContext.
 File getArtifact()
           
 ArtifactInfo getArtifactInfo()
           
 List<Exception> getErrors()
           
 Gav getGav()
           
 File getMetadata()
           
 File getPom()
           
 org.apache.maven.model.Model getPomModel()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArtifactContext

public ArtifactContext(File pom,
                       File artifact,
                       File metadata,
                       ArtifactInfo artifactInfo,
                       Gav gav)
                throws IllegalArgumentException
Throws:
IllegalArgumentException
Method Detail

getPom

public File getPom()

getPomModel

public org.apache.maven.model.Model getPomModel()

getArtifact

public File getArtifact()

getMetadata

public File getMetadata()

getArtifactInfo

public ArtifactInfo getArtifactInfo()

getGav

public Gav getGav()

getErrors

public List<Exception> getErrors()

addError

public void addError(Exception e)

createDocument

public org.apache.lucene.document.Document createDocument(IndexingContext context)
Creates Lucene Document using IndexCreators from the given IndexingContext.



Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.