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
Nested ClassesModifier and TypeClassDescriptionstatic final classEntry key is field key with some metadata.static enumTypes of returned records returned from index. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Record.EntryKeystatic final Record.EntryKeyKey of artifact artifactId entry, that containsString.static final Record.EntryKeyKey of artifact classifier entry, that containsString.static final Record.EntryKeystatic final Record.EntryKeyKey of artifact description (as set in POM), that containsString.static final Record.EntryKeyKey of artifact file extension, that containsString.static final Record.EntryKeyKey of artifact file last modified timestamp, that containsLong.static final Record.EntryKeyKey of artifact file size in bytes, that containsLong.static final Record.EntryKeyKey of artifact groupId entry, that containsString.static final Record.EntryKeyKey of artifact Javadoc presence flag, that containsBoolean.static final Record.EntryKeyKey of artifact signature presence flag, that containsBoolean.static final Record.EntryKeyKey of artifact Sources presence flag, that containsBoolean.static final Record.EntryKeyKey of artifact name (as set in POM), that containsString.static final Record.EntryKeyKey of deprecated OSGi "Bundle-RequiredExecutionEnvironment" manifest entry, that containsString.static final Record.EntryKeyKey of OSGi "Bundle-Description" manifest entry, that containsString.static final Record.EntryKeyKey of OSGi "Bundle-License" manifest entry, that containsString.static final Record.EntryKeyKey of OSGi "Bundle-Name" manifest entry, that containsString.static final Record.EntryKeyKey of OSGi "Bundle-SymbolicName" manifest entry, that containsString.static final Record.EntryKeyKey of OSGi "Bundle-Version" manifest entry, that containsString.static final Record.EntryKeyKey of OSGi "Bundle-DocURL" manifest entry, that containsString.static final Record.EntryKeyKey of OSGi "Export-Package" manifest entry, that containsString.static final Record.EntryKeyKey of OSGi "Export-Service" manifest entry, that containsString.static final Record.EntryKeyKey of OSGi "Fragment-Host" manifest entry, that containsString.static final Record.EntryKeyKey of OSGi "Import-Package" manifest entry, that containsString.static final Record.EntryKeyKey of OSGi "Provide-Capability" manifest entry, that containsString.static final Record.EntryKeyKey of OSGi "Require-Bundle" manifest entry, that containsString.static final Record.EntryKeyKey of OSGi "Require-Capability" manifest entry, that containsString.static final Record.EntryKeyKey of artifact packaging entry, that containsString.static final Record.EntryKeystatic final Record.EntryKeyKey of plugin artifact prefix, that containsString.static final Record.EntryKeyKey of index record modification (added to index or removed from index) timestamp entry, that containsLong.static final Record.EntryKeyKey of repository ID entry, that containsString.static final Record.EntryKeystatic final Record.EntryKeyKey for SHA-256 checksum needed for OSGI content capability that containsString.static final Record.EntryKeyKey of artifact SHA1 digest, that containsString.static final Record.EntryKeyKey of artifact version entry, that containsString. -
Constructor Summary
Constructors -
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 asMapready 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.Typeof 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.Typeof this record. Usually users would be interested inRecord.Type.ARTIFACT_ADDandRecord.Type.ARTIFACT_REMOVEtypes only to maintain their own index. Still, indexer offers extra records too, seeRecord.Typefor all existing types. -
getExpanded
Returns the expanded (processed and expanded synthetic fields) record asMapready 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. Acceptsnullvalues, that removes the mapping. -
toString
-