Class BundleCapabilityImpl

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String VERSION_ATTR  
    • Constructor Summary

      Constructors 
      Constructor Description
      BundleCapabilityImpl​(BundleRevision revision, java.lang.String namespace, java.util.Map<java.lang.String,​java.lang.String> dirs, java.util.Map<java.lang.String,​java.lang.Object> attrs)  
    • Constructor Detail

      • BundleCapabilityImpl

        public BundleCapabilityImpl​(BundleRevision revision,
                                    java.lang.String namespace,
                                    java.util.Map<java.lang.String,​java.lang.String> dirs,
                                    java.util.Map<java.lang.String,​java.lang.Object> attrs)
    • Method Detail

      • getDirectives

        public java.util.Map<java.lang.String,​java.lang.String> getDirectives()
        Description copied from interface: BundleCapability
        Returns the directives of this capability.

        All capability directives not specified by the wiring namespaces have no specified semantics and are considered extra user defined information.

        Specified by:
        getDirectives in interface BundleCapability
        Specified by:
        getDirectives in interface Capability
        Returns:
        An unmodifiable map of directive names to directive values for this capability, or an empty map if this capability has no directives.
      • getAttributes

        public java.util.Map<java.lang.String,​java.lang.Object> getAttributes()
        Description copied from interface: BundleCapability
        Returns the attributes of this capability.
        Specified by:
        getAttributes in interface BundleCapability
        Specified by:
        getAttributes in interface Capability
        Returns:
        An unmodifiable map of attribute names to attribute values for this capability, or an empty map if this capability has no attributes.
      • isAttributeMandatory

        public boolean isAttributeMandatory​(java.lang.String name)
      • getUses

        public java.util.List<java.lang.String> getUses()
      • isIncluded

        public boolean isIncluded​(java.lang.String name)
      • toString

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