Class WrappedRevision

    • Method Detail

      • getCapabilities

        public java.util.List<Capability> getCapabilities​(java.lang.String namespace)
        Description copied from interface: BundleRevision
        Returns the capabilities declared by this resource.

        This method returns the same value as BundleRevision.getDeclaredCapabilities(String).

        Specified by:
        getCapabilities in interface BundleRevision
        Specified by:
        getCapabilities in interface Resource
        Parameters:
        namespace - The namespace of the declared capabilities to return or null to return the declared capabilities from all namespaces.
        Returns:
        An unmodifiable list containing the declared Capabilitys from the specified namespace. The returned list will be empty if this resource declares no capabilities in the specified namespace.
      • asCapabilityList

        private static java.util.List<Capability> asCapabilityList​(java.util.List caps)
      • getDeclaredCapabilities

        public java.util.List<BundleCapability> getDeclaredCapabilities​(java.lang.String namespace)
        Description copied from interface: BundleRevision
        Returns the capabilities declared by this bundle revision.
        Specified by:
        getDeclaredCapabilities in interface BundleRevision
        Parameters:
        namespace - The namespace of the declared capabilities to return or null to return the declared capabilities from all namespaces.
        Returns:
        An unmodifiable list containing the declared BundleCapabilitys from the specified namespace. The returned list will be empty if this bundle revision declares no capabilities in the specified namespace. The list contains the declared capabilities in the order they are specified in the manifest.
      • getRequirements

        public java.util.List<Requirement> getRequirements​(java.lang.String namespace)
        Description copied from interface: BundleRevision
        Returns the requirements declared by this bundle resource.

        This method returns the same value as BundleRevision.getDeclaredRequirements(String).

        Specified by:
        getRequirements in interface BundleRevision
        Specified by:
        getRequirements in interface Resource
        Parameters:
        namespace - The namespace of the declared requirements to return or null to return the declared requirements from all namespaces.
        Returns:
        An unmodifiable list containing the declared Requirement s from the specified namespace. The returned list will be empty if this resource declares no requirements in the specified namespace.
      • asRequirementList

        private static java.util.List<Requirement> asRequirementList​(java.util.List reqs)
      • getDeclaredRequirements

        public java.util.List<BundleRequirement> getDeclaredRequirements​(java.lang.String namespace)
        Description copied from interface: BundleRevision
        Returns the requirements declared by this bundle revision.
        Specified by:
        getDeclaredRequirements in interface BundleRevision
        Parameters:
        namespace - The namespace of the declared requirements to return or null to return the declared requirements from all namespaces.
        Returns:
        An unmodifiable list containing the declared BundleRequirements from the specified namespace. The returned list will be empty if this bundle revision declares no requirements in the specified namespace. The list contains the declared requirements in the order they are specified in the manifest.
      • getTypes

        public int getTypes()
        Description copied from interface: BundleRevision
        Returns the special types of this bundle revision. The bundle revision type values are: A bundle revision may be more than one type at a time. A type code is used to identify the bundle revision type for future extendability.

        If this bundle revision is not one or more of the defined types then 0 is returned.

        Specified by:
        getTypes in interface BundleRevision
        Returns:
        The special types of this bundle revision. The type values are ORed together.
      • getBundle

        public Bundle getBundle()
        Description copied from interface: BundleReference
        Returns the Bundle object associated with this BundleReference.
        Specified by:
        getBundle in interface BundleReference
        Returns:
        The Bundle object associated with this BundleReference.
      • toString

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