public class ArtifactContext extends Object
IndexCreator
, which can populate ArtifactInfo
for the given artifact.IndexCreator.populateArtifactInfo(ArtifactContext)
Constructor and Description |
---|
ArtifactContext(File pom,
File artifact,
File metadata,
ArtifactInfo artifactInfo,
Gav gav) |
Modifier and Type | Method and Description |
---|---|
void |
addError(Exception e) |
org.apache.lucene.document.Document |
createDocument(IndexingContext context)
Creates Lucene Document using
IndexCreator s from the given IndexingContext . |
File |
getArtifact() |
ArtifactInfo |
getArtifactInfo() |
List<Exception> |
getErrors() |
Gav |
getGav() |
File |
getMetadata() |
File |
getPom() |
Model |
getPomModel() |
public ArtifactContext(File pom, File artifact, File metadata, ArtifactInfo artifactInfo, Gav gav) throws IllegalArgumentException
IllegalArgumentException
public File getPom()
public Model getPomModel()
public File getArtifact()
public File getMetadata()
public ArtifactInfo getArtifactInfo()
public Gav getGav()
public void addError(Exception e)
public org.apache.lucene.document.Document createDocument(IndexingContext context)
IndexCreator
s from the given IndexingContext
.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.