Class Record


  • public final class Record
    extends java.lang.Object
    Maven 2 Index record.
    Since:
    5.1.2
    • Field Detail

      • REPOSITORY_ID

        public static final Record.EntryKey<java.lang.String> REPOSITORY_ID
        Key of repository ID entry, that contains String.
      • ALL_GROUPS

        public static final Record.EntryKey<java.lang.String[]> ALL_GROUPS
        Key of all groups list entry, that contains List.
      • ROOT_GROUPS

        public static final Record.EntryKey<java.lang.String[]> ROOT_GROUPS
        Key of root groups list entry, that contains List.
      • REC_MODIFIED

        public static final Record.EntryKey<java.lang.Long> REC_MODIFIED
        Key of index record modification (added to index or removed from index) timestamp entry, that contains Long.
      • GROUP_ID

        public static final Record.EntryKey<java.lang.String> GROUP_ID
        Key of artifact groupId entry, that contains String.
      • ARTIFACT_ID

        public static final Record.EntryKey<java.lang.String> ARTIFACT_ID
        Key of artifact artifactId entry, that contains String.
      • VERSION

        public static final Record.EntryKey<java.lang.String> VERSION
        Key of artifact version entry, that contains String.
      • CLASSIFIER

        public static final Record.EntryKey<java.lang.String> CLASSIFIER
        Key of artifact classifier entry, that contains String.
      • PACKAGING

        public static final Record.EntryKey<java.lang.String> PACKAGING
        Key of artifact packaging entry, that contains String.
      • FILE_EXTENSION

        public static final Record.EntryKey<java.lang.String> FILE_EXTENSION
        Key of artifact file extension, that contains String.
      • FILE_MODIFIED

        public static final Record.EntryKey<java.lang.Long> FILE_MODIFIED
        Key of artifact file last modified timestamp, that contains Long.
      • FILE_SIZE

        public static final Record.EntryKey<java.lang.Long> FILE_SIZE
        Key of artifact file size in bytes, that contains Long.
      • HAS_SOURCES

        public static final Record.EntryKey<java.lang.Boolean> HAS_SOURCES
        Key of artifact Sources presence flag, that contains Boolean.
      • HAS_JAVADOC

        public static final Record.EntryKey<java.lang.Boolean> HAS_JAVADOC
        Key of artifact Javadoc presence flag, that contains Boolean.
      • HAS_SIGNATURE

        public static final Record.EntryKey<java.lang.Boolean> HAS_SIGNATURE
        Key of artifact signature presence flag, that contains Boolean.
      • NAME

        public static final Record.EntryKey<java.lang.String> NAME
        Key of artifact name (as set in POM), that contains String.
      • DESCRIPTION

        public static final Record.EntryKey<java.lang.String> DESCRIPTION
        Key of artifact description (as set in POM), that contains String.
      • SHA1

        public static final Record.EntryKey<java.lang.String> SHA1
        Key of artifact SHA1 digest, that contains String.
      • CLASSNAMES

        public static final Record.EntryKey<java.lang.String[]> CLASSNAMES
        Key of artifact contained class names, that contains List. Extracted by JarFileContentsIndexCreator.
      • PLUGIN_PREFIX

        public static final Record.EntryKey<java.lang.String> PLUGIN_PREFIX
        Key of plugin artifact prefix, that contains String. Extracted by MavenPluginArtifactInfoIndexCreator.
      • PLUGIN_GOALS

        public static final Record.EntryKey<java.lang.String[]> PLUGIN_GOALS
        Key of plugin artifact goals, that contains List. Extracted by MavenPluginArtifactInfoIndexCreator.
      • OSGI_BUNDLE_SYMBOLIC_NAME

        public static final Record.EntryKey<java.lang.String> OSGI_BUNDLE_SYMBOLIC_NAME
        Key of OSGi "Bundle-SymbolicName" manifest entry, that contains String. Extracted by OsgiArtifactIndexCreator.
      • OSGI_BUNDLE_VERSION

        public static final Record.EntryKey<java.lang.String> OSGI_BUNDLE_VERSION
        Key of OSGi "Bundle-Version" manifest entry, that contains String. Extracted by OsgiArtifactIndexCreator.
      • OSGI_EXPORT_PACKAGE

        public static final Record.EntryKey<java.lang.String> OSGI_EXPORT_PACKAGE
        Key of OSGi "Export-Package" manifest entry, that contains String. Extracted by OsgiArtifactIndexCreator.
      • OSGI_EXPORT_SERVICE

        public static final Record.EntryKey<java.lang.String> OSGI_EXPORT_SERVICE
        Key of OSGi "Export-Service" manifest entry, that contains String. Extracted by OsgiArtifactIndexCreator.
      • OSGI_BUNDLE_DESCRIPTION

        public static final Record.EntryKey<java.lang.String> OSGI_BUNDLE_DESCRIPTION
        Key of OSGi "Bundle-Description" manifest entry, that contains String. Extracted by OsgiArtifactIndexCreator.
      • OSGI_BUNDLE_NAME

        public static final Record.EntryKey<java.lang.String> OSGI_BUNDLE_NAME
        Key of OSGi "Bundle-Name" manifest entry, that contains String. Extracted by OsgiArtifactIndexCreator.
      • OSGI_BUNDLE_LICENSE

        public static final Record.EntryKey<java.lang.String> OSGI_BUNDLE_LICENSE
        Key of OSGi "Bundle-License" manifest entry, that contains String. Extracted by OsgiArtifactIndexCreator.
      • OSGI_EXPORT_DOCURL

        public static final Record.EntryKey<java.lang.String> OSGI_EXPORT_DOCURL
        Key of OSGi "Bundle-DocURL" manifest entry, that contains String. Extracted by OsgiArtifactIndexCreator.
      • OSGI_IMPORT_PACKAGE

        public static final Record.EntryKey<java.lang.String> OSGI_IMPORT_PACKAGE
        Key of OSGi "Import-Package" manifest entry, that contains String. Extracted by OsgiArtifactIndexCreator.
      • OSGI_REQUIRE_BUNDLE

        public static final Record.EntryKey<java.lang.String> OSGI_REQUIRE_BUNDLE
        Key of OSGi "Require-Bundle" manifest entry, that contains String. Extracted by OsgiArtifactIndexCreator.
      • OSGI_PROVIDE_CAPABILITY

        public static final Record.EntryKey<java.lang.String> OSGI_PROVIDE_CAPABILITY
        Key of OSGi "Provide-Capability" manifest entry, that contains String. Extracted by OsgiArtifactIndexCreator.
      • OSGI_REQUIRE_CAPABILITY

        public static final Record.EntryKey<java.lang.String> OSGI_REQUIRE_CAPABILITY
        Key of OSGi "Require-Capability" manifest entry, that contains String. Extracted by OsgiArtifactIndexCreator.
      • OSGI_FRAGMENT_HOST

        public static final Record.EntryKey<java.lang.String> OSGI_FRAGMENT_HOST
        Key of OSGi "Fragment-Host" manifest entry, that contains String. Extracted by OsgiArtifactIndexCreator.
      • OSGI_BREE

        public static final Record.EntryKey<java.lang.String> OSGI_BREE
        Key of deprecated OSGi "Bundle-RequiredExecutionEnvironment" manifest entry, that contains String. Extracted by OsgiArtifactIndexCreator.
      • SHA_256

        public static final Record.EntryKey<java.lang.String> SHA_256
        Key for SHA-256 checksum needed for OSGI content capability that contains String. Extracted by OsgiArtifactIndexCreator.
      • expanded

        private final java.util.Map<Record.EntryKey,​java.lang.Object> expanded
    • Method Detail

      • getExpanded

        public java.util.Map<Record.EntryKey,​java.lang.Object> getExpanded()
        Returns the expanded (processed and expanded synthetic fields) record as Map ready for consumption.
      • get

        public <T> T get​(Record.EntryKey<T> entryKey)
        Type safe handy method to get value from expanded map.
      • put

        public <T> T put​(Record.EntryKey<T> entryKey,
                         T value)
        Type safe handy method to put value to expanded map. Accepts null values, that removes the mapping.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object