Package org.apache.maven.index
Class ArtifactInfo
java.lang.Object
org.apache.maven.index.ArtifactInfoRecord
org.apache.maven.index.ArtifactInfo
- All Implemented Interfaces:
Serializable
ArtifactInfo holds the values known about an repository artifact. This is a simple Value Object kind of stuff.
Phasing out.
- Author:
- Jason van Zyl, Eugene Kuleshov
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
ArtifactId.static final String
static final String
OSGI Provide-Capability headerstatic final String
OSGI Provide-Capability headerstatic final String
static final String
static final String
Classifier.static final Comparator
<ArtifactInfo> static final String
Field that containsUINFO
value for deleted artifactstatic final String
Description.static final String
GroupId.static final String
Info: packaging, lastModified, size, sourcesExists, javadocExists, signatureExists.static final String
Last modified.static final String
Name.static final String
Class names Stored compressed, indexed tokenizedstatic final String
Packaging.static final String
Plugin goals.static final String
Plugin prefix.static final Comparator
<ArtifactInfo> static final String
static final String
static final String
static final String
SHA1.static final String
Unique groupId, artifactId, version, classifier, extension (or packaging).static final String
Version.static final Comparator
<ArtifactInfo> Fields inherited from class org.apache.maven.index.ArtifactInfoRecord
FLD_DELETED, FLD_UINFO, FS, FS_PATTERN, NA
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.aether.version.Version
getFieldValue
(Field field) This method will disappear, once we drop ArtifactInfo.getGoals()
long
float
getMd5()
getName()
getPath()
getSha1()
long
getSize()
getUinfo()
org.eclipse.aether.version.VersionScheme
static String
lst2str
(Collection<String> list) static String
static String
void
setArtifactId
(String artifactId) void
setArtifactVersion
(org.eclipse.aether.version.Version artifactVersion) void
setBundleDescription
(String bundleDescription) void
setBundleDocUrl
(String bundleDocUrl) void
setBundleExportPackage
(String bundleExportPackage) void
setBundleExportService
(String bundleExportService) void
setBundleFragmentHost
(String bundleFragmentHost) void
setBundleImportPackage
(String bundleImportPackage) void
setBundleLicense
(String bundleLicense) void
setBundleName
(String bundleName) void
setBundleProvideCapability
(String bundleProvideCapability) void
setBundleRequireBundle
(String bundleRequireBundle) void
setBundleRequireCapability
(String bundleRequireCapability) void
setBundleRequiredExecutionEnvironment
(String bundleRequiredExecutionEnvironment) void
setBundleSymbolicName
(String bundleSymbolicName) void
setBundleVersion
(String bundleVersion) void
setClassifier
(String classifier) void
setClassNames
(String classNames) void
setContext
(String context) void
setDescription
(String description) void
setFieldValue
(Field field, String value) void
setFileExtension
(String fileExtension) void
setFileName
(String fileName) void
void
setGroupId
(String groupId) void
setJavadocExists
(ArtifactAvailability javadocExists) void
setLastModified
(long lastModified) void
setLuceneScore
(float score) void
void
void
setPackaging
(String packaging) void
void
void
setRemoteUrl
(String remoteUrl) void
setRepository
(String repository) void
void
void
setSignatureExists
(ArtifactAvailability signatureExists) void
setSize
(long size) void
setSourcesExists
(ArtifactAvailability sourcesExists) void
setVersion
(String version) toString()
-
Field Details
-
ROOT_GROUPS
- See Also:
-
ROOT_GROUPS_VALUE
- See Also:
-
ROOT_GROUPS_LIST
- See Also:
-
ALL_GROUPS
- See Also:
-
ALL_GROUPS_VALUE
- See Also:
-
ALL_GROUPS_LIST
- See Also:
-
UINFO
Unique groupId, artifactId, version, classifier, extension (or packaging). Stored, indexed untokenized -
DELETED
Field that containsUINFO
value for deleted artifact -
GROUP_ID
GroupId. Not stored, indexed untokenized -
ARTIFACT_ID
ArtifactId. Not stored, indexed tokenized -
VERSION
Version. Not stored, indexed tokenized -
PACKAGING
Packaging. Not stored, indexed untokenized -
CLASSIFIER
Classifier. Not stored, indexed untokenized -
INFO
Info: packaging, lastModified, size, sourcesExists, javadocExists, signatureExists. Stored, not indexed. -
NAME
Name. Stored, not indexed -
DESCRIPTION
Description. Stored, not indexed -
LAST_MODIFIED
Last modified. Stored, not indexed -
SHA1
SHA1. Stored, indexed untokenized -
NAMES
Class names Stored compressed, indexed tokenized -
PLUGIN_PREFIX
Plugin prefix. Stored, not indexed -
PLUGIN_GOALS
Plugin goals. Stored, not indexed -
BUNDLE_SYMBOLIC_NAME
- Since:
- 1.4.2
-
BUNDLE_VERSION
- Since:
- 1.4.2
-
BUNDLE_EXPORT_PACKAGE
- Since:
- 1.4.2
-
BUNDLE_PROVIDE_CAPABILITY
OSGI Provide-Capability header- Since:
- 5.1.2
-
BUNDLE_REQUIRE_CAPABILITY
OSGI Provide-Capability header- Since:
- 5.1.2
-
VERSION_COMPARATOR
-
REPOSITORY_VERSION_COMPARATOR
-
CONTEXT_VERSION_COMPARATOR
-
-
Constructor Details
-
ArtifactInfo
public ArtifactInfo() -
ArtifactInfo
-
-
Method Details
-
getArtifactVersion
public org.eclipse.aether.version.Version getArtifactVersion() -
getLuceneScore
public float getLuceneScore() -
setLuceneScore
public void setLuceneScore(float score) -
getUinfo
-
getRootGroup
-
calculateGav
-
getAttributes
-
getMatchHighlights
-
toString
-
getFields
-
getFieldValue
This method will disappear, once we drop ArtifactInfo.- Parameters:
field
-- Returns:
-
setFieldValue
-
nvl
-
renvl
-
lst2str
-
str2lst
-
getFileName
-
setFileName
-
getFileExtension
-
setFileExtension
-
getGroupId
-
setGroupId
-
getArtifactId
-
setArtifactId
-
getVersion
-
setVersion
-
setArtifactVersion
public void setArtifactVersion(org.eclipse.aether.version.Version artifactVersion) -
getClassifier
-
setClassifier
-
getPackaging
-
setPackaging
-
getName
-
setName
-
getDescription
-
setDescription
-
getLastModified
public long getLastModified() -
setLastModified
public void setLastModified(long lastModified) -
getSize
public long getSize() -
setSize
public void setSize(long size) -
getMd5
-
setMd5
-
getSha1
-
setSha1
-
getSourcesExists
-
setSourcesExists
-
getJavadocExists
-
setJavadocExists
-
getSignatureExists
-
setSignatureExists
-
getClassNames
-
setClassNames
-
getRepository
-
setRepository
-
getPath
-
setPath
-
getRemoteUrl
-
setRemoteUrl
-
getContext
-
setContext
-
getPrefix
-
setPrefix
-
getGoals
-
setGoals
-
getBundleVersion
-
setBundleVersion
-
getBundleSymbolicName
-
setBundleSymbolicName
-
getBundleExportPackage
-
setBundleExportPackage
-
getBundleExportService
-
setBundleExportService
-
getBundleDescription
-
setBundleDescription
-
getBundleName
-
setBundleName
-
getBundleLicense
-
setBundleLicense
-
getBundleDocUrl
-
setBundleDocUrl
-
getBundleImportPackage
-
setBundleImportPackage
-
getBundleRequireBundle
-
setBundleRequireBundle
-
getVersionScheme
public org.eclipse.aether.version.VersionScheme getVersionScheme() -
setFields
-
getBundleProvideCapability
-
setBundleProvideCapability
-
getBundleRequireCapability
-
setBundleRequireCapability
-
getSha256
-
setSha256
-
getBundleFragmentHost
-
setBundleFragmentHost
-
getBundleRequiredExecutionEnvironment
-
setBundleRequiredExecutionEnvironment
-