Class BundleRequirementImpl

    • Constructor Detail

      • BundleRequirementImpl

        public BundleRequirementImpl​(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,
                                     SimpleFilter filter)
      • BundleRequirementImpl

        public BundleRequirementImpl​(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: BundleRequirement
        Returns the directives of this requirement.

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

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

        public java.util.Map<java.lang.String,​java.lang.Object> getAttributes()
        Description copied from interface: BundleRequirement
        Returns the attributes of this requirement.

        Requirement attributes have no specified semantics and are considered extra user defined information.

        Specified by:
        getAttributes in interface BundleRequirement
        Specified by:
        getAttributes in interface Requirement
        Returns:
        An unmodifiable map of attribute names to attribute values for this requirement, or an empty map if this requirement has no attributes.
      • isOptional

        public boolean isOptional()
      • toString

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