public class ArtifactContext
extends java.lang.Object
IndexCreator
, which can populate ArtifactInfo
for the given artifact.Modifier and Type | Field and Description |
---|---|
private java.io.File |
artifact |
private ArtifactInfo |
artifactInfo |
private java.util.List<java.lang.Exception> |
errors |
private Gav |
gav |
private static org.slf4j.Logger |
LOGGER |
private java.io.File |
metadata |
private java.io.File |
pom |
Constructor and Description |
---|
ArtifactContext(java.io.File pom,
java.io.File artifact,
java.io.File metadata,
ArtifactInfo artifactInfo,
Gav gav) |
Modifier and Type | Method and Description |
---|---|
void |
addError(java.lang.Exception e) |
org.apache.lucene.document.Document |
createDocument(IndexingContext context)
Creates Lucene Document using
IndexCreator s from the given IndexingContext . |
java.io.File |
getArtifact() |
ArtifactInfo |
getArtifactInfo() |
java.util.List<java.lang.Exception> |
getErrors() |
Gav |
getGav() |
java.io.File |
getMetadata() |
java.io.File |
getPom() |
org.apache.maven.model.Model |
getPomModel() |
private static final org.slf4j.Logger LOGGER
private final java.io.File pom
private final java.io.File artifact
private final java.io.File metadata
private final ArtifactInfo artifactInfo
private final Gav gav
private final java.util.List<java.lang.Exception> errors
public ArtifactContext(java.io.File pom, java.io.File artifact, java.io.File metadata, ArtifactInfo artifactInfo, Gav gav) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public java.io.File getPom()
public org.apache.maven.model.Model getPomModel()
public java.io.File getArtifact()
public java.io.File getMetadata()
public ArtifactInfo getArtifactInfo()
public Gav getGav()
public java.util.List<java.lang.Exception> getErrors()
public void addError(java.lang.Exception e)
public org.apache.lucene.document.Document createDocument(IndexingContext context)
IndexCreator
s from the given IndexingContext
.