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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringArtifactId.static final Stringstatic final StringOSGI Provide-Capability headerstatic final StringOSGI Provide-Capability headerstatic final Stringstatic final Stringstatic final StringClassifier.static final Comparator<ArtifactInfo> static final StringField that containsUINFOvalue for deleted artifactstatic final StringDescription.static final StringGroupId.static final StringInfo: packaging, lastModified, size, sourcesExists, javadocExists, signatureExists.static final StringLast modified.static final StringName.static final StringClass names Stored compressed, indexed tokenizedstatic final StringPackaging.static final StringPlugin goals.static final StringPlugin prefix.static final Comparator<ArtifactInfo> static final Stringstatic final Stringstatic final Stringstatic final StringSHA1.static final StringUnique groupId, artifactId, version, classifier, extension (or packaging).static final StringVersion.static final Comparator<ArtifactInfo> Fields inherited from class org.apache.maven.index.ArtifactInfoRecord
FLD_DELETED, FLD_UINFO, FS, FS_PATTERN, NA -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.aether.version.VersiongetFieldValue(Field field) This method will disappear, once we drop ArtifactInfo.getGoals()longfloatgetMd5()getName()getPath()getSha1()longgetSize()getUinfo()org.eclipse.aether.version.VersionSchemestatic Stringlst2str(Collection<String> list) static Stringstatic StringvoidsetArtifactId(String artifactId) voidsetArtifactVersion(org.eclipse.aether.version.Version artifactVersion) voidsetBundleDescription(String bundleDescription) voidsetBundleDocUrl(String bundleDocUrl) voidsetBundleExportPackage(String bundleExportPackage) voidsetBundleExportService(String bundleExportService) voidsetBundleFragmentHost(String bundleFragmentHost) voidsetBundleImportPackage(String bundleImportPackage) voidsetBundleLicense(String bundleLicense) voidsetBundleName(String bundleName) voidsetBundleProvideCapability(String bundleProvideCapability) voidsetBundleRequireBundle(String bundleRequireBundle) voidsetBundleRequireCapability(String bundleRequireCapability) voidsetBundleRequiredExecutionEnvironment(String bundleRequiredExecutionEnvironment) voidsetBundleSymbolicName(String bundleSymbolicName) voidsetBundleVersion(String bundleVersion) voidsetClassifier(String classifier) voidsetClassNames(String classNames) voidsetContext(String context) voidsetDescription(String description) voidsetFieldValue(Field field, String value) voidsetFileExtension(String fileExtension) voidsetFileName(String fileName) voidvoidsetGroupId(String groupId) voidsetJavadocExists(ArtifactAvailability javadocExists) voidsetLastModified(long lastModified) voidsetLuceneScore(float score) voidvoidvoidsetPackaging(String packaging) voidvoidvoidsetRemoteUrl(String remoteUrl) voidsetRepository(String repository) voidvoidvoidsetSignatureExists(ArtifactAvailability signatureExists) voidsetSize(long size) voidsetSourcesExists(ArtifactAvailability sourcesExists) voidsetVersion(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 containsUINFOvalue 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
-