public boolean updateArtifactInfo()

in indexer-core/src/main/java/org/apache/maven/index/creator/OsgiArtifactIndexCreator.java [289:413]


    public boolean updateArtifactInfo(Document document, ArtifactInfo artifactInfo) {
        boolean updated = false;

        String bundleSymbolicName = document.get(FLD_BUNDLE_SYMBOLIC_NAME.getKey());

        if (bundleSymbolicName != null) {
            artifactInfo.setBundleSymbolicName(bundleSymbolicName);

            updated = true;
        }

        String bundleVersion = document.get(FLD_BUNDLE_VERSION.getKey());

        if (bundleVersion != null) {
            artifactInfo.setBundleVersion(bundleVersion);

            updated = true;
        }

        String bundleExportPackage = document.get(FLD_BUNDLE_EXPORT_PACKAGE.getKey());

        if (bundleExportPackage != null) {
            artifactInfo.setBundleExportPackage(bundleExportPackage);

            updated = true;
        }

        String bundleExportService = document.get(FLD_BUNDLE_EXPORT_SERVIVE.getKey());

        if (bundleExportService != null) {
            artifactInfo.setBundleExportService(bundleExportService);

            updated = true;
        }

        String bundleDescription = document.get(FLD_BUNDLE_DESCRIPTION.getKey());

        if (bundleDescription != null) {
            artifactInfo.setBundleDescription(bundleDescription);

            updated = true;
        }

        String bundleName = document.get(FLD_BUNDLE_NAME.getKey());

        if (bundleName != null) {
            artifactInfo.setBundleName(bundleName);

            updated = true;
        }

        String bundleLicense = document.get(FLD_BUNDLE_LICENSE.getKey());

        if (bundleLicense != null) {
            artifactInfo.setBundleLicense(bundleLicense);

            updated = true;
        }

        String bundleDocUrl = document.get(FLD_BUNDLE_DOCURL.getKey());

        if (bundleDocUrl != null) {
            artifactInfo.setBundleDocUrl(bundleDocUrl);

            updated = true;
        }

        String bundleImportPackage = document.get(FLD_BUNDLE_IMPORT_PACKAGE.getKey());

        if (bundleImportPackage != null) {
            artifactInfo.setBundleImportPackage(bundleImportPackage);

            updated = true;
        }

        String bundleRequireBundle = document.get(FLD_BUNDLE_REQUIRE_BUNDLE.getKey());

        if (bundleRequireBundle != null) {
            artifactInfo.setBundleRequireBundle(bundleRequireBundle);

            updated = true;
        }

        String bundleProvideCapability = document.get(FLD_BUNDLE_PROVIDE_CAPABILITY.getKey());

        if (bundleProvideCapability != null) {
            artifactInfo.setBundleProvideCapability(bundleProvideCapability);

            updated = true;
        }

        String bundleRequireCapability = document.get(FLD_BUNDLE_REQUIRE_CAPABILITY.getKey());

        if (bundleRequireCapability != null) {
            artifactInfo.setBundleRequireCapability(bundleRequireCapability);

            updated = true;
        }

        String bundleFragmentHost = document.get(FLD_BUNDLE_FRAGMENT_HOST.getKey());

        if (bundleFragmentHost != null) {
            artifactInfo.setBundleFragmentHost(bundleFragmentHost);

            updated = true;
        }

        String bundleRequiredExecutionEnvironment = document.get(FLD_BUNDLE_REQUIRED_EXECUTION_ENVIRONMENT.getKey());

        if (bundleRequiredExecutionEnvironment != null) {
            artifactInfo.setBundleRequiredExecutionEnvironment(bundleRequiredExecutionEnvironment);

            updated = true;
        }

        String sha256 = document.get(FLD_SHA256.getKey());

        if (sha256 != null) {
            artifactInfo.setSha256(sha256);

            updated = true;
        }

        return updated;
    }