Package org.apache.maven.index.reader
Class Record
java.lang.Object
org.apache.maven.index.reader.Record
Maven 2 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.EntryKey<String[]>static final Record.EntryKey<String>Key of artifact artifactId entry, that containsString.static final Record.EntryKey<String>Key of artifact classifier entry, that containsString.static final Record.EntryKey<String[]>static final Record.EntryKey<String>Key of artifact description (as set in POM), that containsString.static final Record.EntryKey<String>Key of artifact file extension, that containsString.static final Record.EntryKey<Long>Key of artifact file last modified timestamp, that containsLong.static final Record.EntryKey<Long>Key of artifact file size in bytes, that containsLong.static final Record.EntryKey<String>Key of artifact groupId entry, that containsString.static final Record.EntryKey<Boolean>Key of artifact Javadoc presence flag, that containsBoolean.static final Record.EntryKey<Boolean>Key of artifact signature presence flag, that containsBoolean.static final Record.EntryKey<Boolean>Key of artifact Sources presence flag, that containsBoolean.static final Record.EntryKey<String>Key of artifact name (as set in POM), that containsString.static final Record.EntryKey<String>Key of deprecated OSGi "Bundle-RequiredExecutionEnvironment" manifest entry, that containsString.static final Record.EntryKey<String>Key of OSGi "Bundle-Description" manifest entry, that containsString.static final Record.EntryKey<String>Key of OSGi "Bundle-License" manifest entry, that containsString.static final Record.EntryKey<String>Key of OSGi "Bundle-Name" manifest entry, that containsString.static final Record.EntryKey<String>Key of OSGi "Bundle-SymbolicName" manifest entry, that containsString.static final Record.EntryKey<String>Key of OSGi "Bundle-Version" manifest entry, that containsString.static final Record.EntryKey<String>Key of OSGi "Bundle-DocURL" manifest entry, that containsString.static final Record.EntryKey<String>Key of OSGi "Export-Package" manifest entry, that containsString.static final Record.EntryKey<String>Key of OSGi "Export-Service" manifest entry, that containsString.static final Record.EntryKey<String>Key of OSGi "Fragment-Host" manifest entry, that containsString.static final Record.EntryKey<String>Key of OSGi "Import-Package" manifest entry, that containsString.static final Record.EntryKey<String>Key of OSGi "Provide-Capability" manifest entry, that containsString.static final Record.EntryKey<String>Key of OSGi "Require-Bundle" manifest entry, that containsString.static final Record.EntryKey<String>Key of OSGi "Require-Capability" manifest entry, that containsString.static final Record.EntryKey<String>Key of artifact packaging entry, that containsString.static final Record.EntryKey<String[]>static final Record.EntryKey<String>Key of plugin artifact prefix, that containsString.static final Record.EntryKey<Long>Key of index record modification (added to index or removed from index) timestamp entry, that containsLong.static final Record.EntryKey<String>Key of repository ID entry, that containsString.static final Record.EntryKey<String[]>static final Record.EntryKey<String>Key for SHA-256 checksum needed for OSGI content capability that containsString.static final Record.EntryKey<String>Key of artifact SHA1 digest, that containsString.static final Record.EntryKey<String>Key of artifact version entry, that containsString. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Tget(Record.EntryKey<T> entryKey) Type safe handy method to get value from expanded map.Returns the expanded (processed and expanded synthetic fields) record asMapready for consumption.getType()Returns theRecord.Typeof this record.<T> Tput(Record.EntryKey<T> entryKey, T 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. -
put
Type safe handy method to put value to expanded map. Acceptsnullvalues, that removes the mapping. -
toString
-