Class WrappedRequirement

    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Description copied from interface: Requirement
        Compares this Requirement to another Requirement.

        This Requirement is equal to another Requirement if they have the same namespace, directives and attributes and are declared by the same resource.

        Specified by:
        equals in interface Requirement
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - The object to compare against this Requirement.
        Returns:
        true if this Requirement is equal to the other object; false otherwise.
      • hashCode

        public int hashCode()
        Description copied from interface: Requirement
        Returns the hashCode of this Requirement.
        Specified by:
        hashCode in interface Requirement
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        The hashCode of this Requirement.
      • 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
        Overrides:
        getDirectives in class BundleRequirementImpl
        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
        Overrides:
        getAttributes in class BundleRequirementImpl
        Returns:
        An unmodifiable map of attribute names to attribute values for this requirement, or an empty map if this requirement has no attributes.