Package org.apache.maven.index.reader
Class Record
java.lang.Object
org.apache.maven.index.reader.Record
Maven Index record.
- Since:
- 5.1.2
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Entry key is field key with some metadata.static enum
Types of returned records returned from index. -
Field Summary
Modifier and TypeFieldDescriptionstatic final Record.EntryKey
static final Record.EntryKey
Key of artifact artifactId entry, that containsString
.static final Record.EntryKey
Key of artifact classifier entry, that containsString
.static final Record.EntryKey
static final Record.EntryKey
Key of artifact description (as set in POM), that containsString
.static final Record.EntryKey
Key of artifact file extension, that containsString
.static final Record.EntryKey
Key of artifact file last modified timestamp, that containsLong
.static final Record.EntryKey
Key of artifact file size in bytes, that containsLong
.static final Record.EntryKey
Key of artifact groupId entry, that containsString
.static final Record.EntryKey
Key of artifact Javadoc presence flag, that containsBoolean
.static final Record.EntryKey
Key of artifact signature presence flag, that containsBoolean
.static final Record.EntryKey
Key of artifact Sources presence flag, that containsBoolean
.static final Record.EntryKey
Key of artifact name (as set in POM), that containsString
.static final Record.EntryKey
Key of deprecated OSGi "Bundle-RequiredExecutionEnvironment" manifest entry, that containsString
.static final Record.EntryKey
Key of OSGi "Bundle-Description" manifest entry, that containsString
.static final Record.EntryKey
Key of OSGi "Bundle-License" manifest entry, that containsString
.static final Record.EntryKey
Key of OSGi "Bundle-Name" manifest entry, that containsString
.static final Record.EntryKey
Key of OSGi "Bundle-SymbolicName" manifest entry, that containsString
.static final Record.EntryKey
Key of OSGi "Bundle-Version" manifest entry, that containsString
.static final Record.EntryKey
Key of OSGi "Bundle-DocURL" manifest entry, that containsString
.static final Record.EntryKey
Key of OSGi "Export-Package" manifest entry, that containsString
.static final Record.EntryKey
Key of OSGi "Export-Service" manifest entry, that containsString
.static final Record.EntryKey
Key of OSGi "Fragment-Host" manifest entry, that containsString
.static final Record.EntryKey
Key of OSGi "Import-Package" manifest entry, that containsString
.static final Record.EntryKey
Key of OSGi "Provide-Capability" manifest entry, that containsString
.static final Record.EntryKey
Key of OSGi "Require-Bundle" manifest entry, that containsString
.static final Record.EntryKey
Key of OSGi "Require-Capability" manifest entry, that containsString
.static final Record.EntryKey
Key of artifact packaging entry, that containsString
.static final Record.EntryKey
static final Record.EntryKey
Key of plugin artifact prefix, that containsString
.static final Record.EntryKey
Key of index record modification (added to index or removed from index) timestamp entry, that containsLong
.static final Record.EntryKey
Key of repository ID entry, that containsString
.static final Record.EntryKey
static final Record.EntryKey
Key for SHA-256 checksum needed for OSGI content capability that containsString
.static final Record.EntryKey
Key of artifact SHA1 digest, that containsString
.static final Record.EntryKey
Key of artifact version entry, that containsString
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget
(Record.EntryKey entryKey) Type safe handy method to get value from expanded map.getBoolean
(Record.EntryKey entryKey) Type safe handy method to get Boolean value from expanded map.Returns the expanded (processed and expanded synthetic fields) record asMap
ready for consumption.getLong
(Record.EntryKey entryKey) Type safe handy method to get Long value from expanded map.getString
(Record.EntryKey entryKey) Type safe handy method to get string value from expanded map.String[]
getStringArray
(Record.EntryKey entryKey) Type safe handy method to get String[] value from expanded map.getType()
Returns theRecord.Type
of this record.put
(Record.EntryKey entryKey, Object value) Type safe handy method to put value to expanded map.toString()
-
Field Details
-
REPOSITORY_ID
Key of repository ID entry, that containsString
. -
ALL_GROUPS
-
ROOT_GROUPS
-
REC_MODIFIED
Key of index record modification (added to index or removed from index) timestamp entry, that containsLong
. -
GROUP_ID
Key of artifact groupId entry, that containsString
. -
ARTIFACT_ID
Key of artifact artifactId entry, that containsString
. -
VERSION
Key of artifact version entry, that containsString
. -
CLASSIFIER
Key of artifact classifier entry, that containsString
. -
PACKAGING
Key of artifact packaging entry, that containsString
. -
FILE_EXTENSION
Key of artifact file extension, that containsString
. -
FILE_MODIFIED
Key of artifact file last modified timestamp, that containsLong
. -
FILE_SIZE
Key of artifact file size in bytes, that containsLong
. -
HAS_SOURCES
Key of artifact Sources presence flag, that containsBoolean
. -
HAS_JAVADOC
Key of artifact Javadoc presence flag, that containsBoolean
. -
HAS_SIGNATURE
Key of artifact signature presence flag, that containsBoolean
. -
NAME
Key of artifact name (as set in POM), that containsString
. -
DESCRIPTION
Key of artifact description (as set in POM), that containsString
. -
SHA1
Key of artifact SHA1 digest, that containsString
. -
CLASSNAMES
-
PLUGIN_PREFIX
Key of plugin artifact prefix, that containsString
. Extracted byMavenPluginArtifactInfoIndexCreator
. -
PLUGIN_GOALS
-
OSGI_BUNDLE_SYMBOLIC_NAME
Key of OSGi "Bundle-SymbolicName" manifest entry, that containsString
. Extracted byOsgiArtifactIndexCreator
. -
OSGI_BUNDLE_VERSION
Key of OSGi "Bundle-Version" manifest entry, that containsString
. Extracted byOsgiArtifactIndexCreator
. -
OSGI_EXPORT_PACKAGE
Key of OSGi "Export-Package" manifest entry, that containsString
. Extracted byOsgiArtifactIndexCreator
. -
OSGI_EXPORT_SERVICE
Key of OSGi "Export-Service" manifest entry, that containsString
. Extracted byOsgiArtifactIndexCreator
. -
OSGI_BUNDLE_DESCRIPTION
Key of OSGi "Bundle-Description" manifest entry, that containsString
. Extracted byOsgiArtifactIndexCreator
. -
OSGI_BUNDLE_NAME
Key of OSGi "Bundle-Name" manifest entry, that containsString
. Extracted byOsgiArtifactIndexCreator
. -
OSGI_BUNDLE_LICENSE
Key of OSGi "Bundle-License" manifest entry, that containsString
. Extracted byOsgiArtifactIndexCreator
. -
OSGI_EXPORT_DOCURL
Key of OSGi "Bundle-DocURL" manifest entry, that containsString
. Extracted byOsgiArtifactIndexCreator
. -
OSGI_IMPORT_PACKAGE
Key of OSGi "Import-Package" manifest entry, that containsString
. Extracted byOsgiArtifactIndexCreator
. -
OSGI_REQUIRE_BUNDLE
Key of OSGi "Require-Bundle" manifest entry, that containsString
. Extracted byOsgiArtifactIndexCreator
. -
OSGI_PROVIDE_CAPABILITY
Key of OSGi "Provide-Capability" manifest entry, that containsString
. Extracted byOsgiArtifactIndexCreator
. -
OSGI_REQUIRE_CAPABILITY
Key of OSGi "Require-Capability" manifest entry, that containsString
. Extracted byOsgiArtifactIndexCreator
. -
OSGI_FRAGMENT_HOST
Key of OSGi "Fragment-Host" manifest entry, that containsString
. Extracted byOsgiArtifactIndexCreator
. -
OSGI_BREE
Key of deprecated OSGi "Bundle-RequiredExecutionEnvironment" manifest entry, that containsString
. Extracted byOsgiArtifactIndexCreator
. -
SHA_256
Key for SHA-256 checksum needed for OSGI content capability that containsString
. Extracted byOsgiArtifactIndexCreator
.
-
-
Constructor Details
-
Record
-
-
Method Details
-
getType
Returns theRecord.Type
of this record. Usually users would be interested inRecord.Type.ARTIFACT_ADD
andRecord.Type.ARTIFACT_REMOVE
types only to maintain their own index. Still, indexer offers extra records too, seeRecord.Type
for all existing types. -
getExpanded
Returns the expanded (processed and expanded synthetic fields) record asMap
ready for consumption. -
get
Type safe handy method to get value from expanded map. -
getString
Type safe handy method to get string value from expanded map.- Since:
- TBD
-
getStringArray
Type safe handy method to get String[] value from expanded map.- Since:
- TBD
-
getLong
Type safe handy method to get Long value from expanded map.- Since:
- TBD
-
getBoolean
Type safe handy method to get Boolean value from expanded map.- Since:
- TBD
-
put
Type safe handy method to put value to expanded map. Acceptsnull
values, that removes the mapping. -
toString
-