Interface BaseDescription

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.osgi.framework.wiring.BundleCapability getCapability()
      Returns the capability represented by this description.
      java.util.Map<java.lang.String,​java.lang.Object> getDeclaredAttributes()
      Returns the attributes declared with the description.
      java.util.Map<java.lang.String,​java.lang.String> getDeclaredDirectives()
      Returns the directives declared with the description.
      java.lang.String getName()
      Returns the name.
      BundleDescription getSupplier()
      Returns the bundle which supplies this base description
      java.lang.Object getUserObject()
      Returns the user object associated to this description, or null if none exists.
      org.osgi.framework.Version getVersion()
      Returns the version.
      void setUserObject​(java.lang.Object userObject)
      Associates a user-provided object to this description, or removes an existing association, if null is provided.
    • Method Detail

      • getName

        java.lang.String getName()
        Returns the name.
        Returns:
        the name
      • getVersion

        org.osgi.framework.Version getVersion()
        Returns the version.
        Returns:
        the version
      • getSupplier

        BundleDescription getSupplier()
        Returns the bundle which supplies this base description
        Returns:
        the bundle which supplies this base description
        Since:
        3.2
      • getDeclaredDirectives

        java.util.Map<java.lang.String,​java.lang.String> getDeclaredDirectives()
        Returns the directives declared with the description. This will return all known directives for the type of description. The set of directives differs for each description type.
        Returns:
        the known directives declared with the description
        Since:
        3.7
      • getDeclaredAttributes

        java.util.Map<java.lang.String,​java.lang.Object> getDeclaredAttributes()
        Returns the attributes declared with the description. This will return all known attributes for the type of description. The set of attributes differs for each description type.
        Returns:
        the attributes declared with the description
        Since:
        3.7
      • getCapability

        org.osgi.framework.wiring.BundleCapability getCapability()
        Returns the capability represented by this description. Some descriptions types may not be able to represent a capability. In such cases null is returned.
        Returns:
        the capability represented by this base description
        Since:
        3.7
      • getUserObject

        java.lang.Object getUserObject()
        Returns the user object associated to this description, or null if none exists.
        Returns:
        the user object associated to this description, or null
        Since:
        3.8
      • setUserObject

        void setUserObject​(java.lang.Object userObject)
        Associates a user-provided object to this description, or removes an existing association, if null is provided. The provided object is not interpreted in any ways by this description.
        Parameters:
        userObject - an arbitrary object provided by the user, or null
        Since:
        3.8