Class WrappedRequirement
java.lang.Object
org.apache.felix.framework.wiring.BundleRequirementImpl
org.apache.felix.framework.resolver.WrappedRequirement
- All Implemented Interfaces:
BundleRequirement
,Requirement
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares thisRequirement
to anotherRequirement
.Returns the attributes of this requirement.Returns the directives of this requirement.Returns the namespace of this requirement.Returns the bundle revision declaring this requirement.int
hashCode()
Returns the hashCode of thisRequirement
.boolean
toString()
Methods inherited from class org.apache.felix.framework.wiring.BundleRequirementImpl
getResource, matches
-
Constructor Details
-
WrappedRequirement
-
-
Method Details
-
equals
Description copied from interface:Requirement
Compares thisRequirement
to anotherRequirement
.This
Requirement
is equal to anotherRequirement
if they have the same namespace, directives and attributes and are declared by the same resource.- Specified by:
equals
in interfaceRequirement
- Overrides:
equals
in classObject
- Parameters:
obj
- The object to compare against thisRequirement
.- Returns:
true
if thisRequirement
is equal to the other object;false
otherwise.
-
hashCode
public int hashCode()Description copied from interface:Requirement
Returns the hashCode of thisRequirement
.- Specified by:
hashCode
in interfaceRequirement
- Overrides:
hashCode
in classObject
- Returns:
- The hashCode of this
Requirement
.
-
getOriginalRequirement
-
getRevision
Description copied from interface:BundleRequirement
Returns the bundle revision declaring this requirement.- Specified by:
getRevision
in interfaceBundleRequirement
- Overrides:
getRevision
in classBundleRequirementImpl
- Returns:
- The bundle revision declaring this requirement.
-
getNamespace
Description copied from interface:BundleRequirement
Returns the namespace of this requirement.- Specified by:
getNamespace
in interfaceBundleRequirement
- Specified by:
getNamespace
in interfaceRequirement
- Overrides:
getNamespace
in classBundleRequirementImpl
- Returns:
- The namespace of this requirement.
-
getFilter
- Overrides:
getFilter
in classBundleRequirementImpl
-
isOptional
public boolean isOptional()- Overrides:
isOptional
in classBundleRequirementImpl
-
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 interfaceBundleRequirement
- Specified by:
getDirectives
in interfaceRequirement
- Overrides:
getDirectives
in classBundleRequirementImpl
- Returns:
- An unmodifiable map of directive names to directive values for this requirement, or an empty map if this requirement has no directives.
-
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 interfaceBundleRequirement
- Specified by:
getAttributes
in interfaceRequirement
- Overrides:
getAttributes
in classBundleRequirementImpl
- Returns:
- An unmodifiable map of attribute names to attribute values for this requirement, or an empty map if this requirement has no attributes.
-
toString
- Overrides:
toString
in classBundleRequirementImpl
-