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 TypeMethodDescriptionbooleanCompares thisRequirementto 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.inthashCode()Returns the hashCode of thisRequirement.booleantoString()Methods inherited from class org.apache.felix.framework.wiring.BundleRequirementImpl
getResource, matches 
- 
Constructor Details
- 
WrappedRequirement
 
 - 
 - 
Method Details
- 
equals
Description copied from interface:RequirementCompares thisRequirementto anotherRequirement.This
Requirementis equal to anotherRequirementif they have the same namespace, directives and attributes and are declared by the same resource.- Specified by:
 equalsin interfaceRequirement- Overrides:
 equalsin classObject- Parameters:
 obj- The object to compare against thisRequirement.- Returns:
 trueif thisRequirementis equal to the other object;falseotherwise.
 - 
hashCode
public int hashCode()Description copied from interface:RequirementReturns the hashCode of thisRequirement.- Specified by:
 hashCodein interfaceRequirement- Overrides:
 hashCodein classObject- Returns:
 - The hashCode of this 
Requirement. 
 - 
getOriginalRequirement
 - 
getRevision
Description copied from interface:BundleRequirementReturns the bundle revision declaring this requirement.- Specified by:
 getRevisionin interfaceBundleRequirement- Overrides:
 getRevisionin classBundleRequirementImpl- Returns:
 - The bundle revision declaring this requirement.
 
 - 
getNamespace
Description copied from interface:BundleRequirementReturns the namespace of this requirement.- Specified by:
 getNamespacein interfaceBundleRequirement- Specified by:
 getNamespacein interfaceRequirement- Overrides:
 getNamespacein classBundleRequirementImpl- Returns:
 - The namespace of this requirement.
 
 - 
getFilter
- Overrides:
 getFilterin classBundleRequirementImpl
 - 
isOptional
public boolean isOptional()- Overrides:
 isOptionalin classBundleRequirementImpl
 - 
getDirectives
Description copied from interface:BundleRequirementReturns the directives of this requirement.All requirement directives not specified by the
wiring namespaceshave no specified semantics and are considered extra user defined information.- Specified by:
 getDirectivesin interfaceBundleRequirement- Specified by:
 getDirectivesin interfaceRequirement- Overrides:
 getDirectivesin 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:BundleRequirementReturns the attributes of this requirement.Requirement attributes have no specified semantics and are considered extra user defined information.
- Specified by:
 getAttributesin interfaceBundleRequirement- Specified by:
 getAttributesin interfaceRequirement- Overrides:
 getAttributesin 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:
 toStringin classBundleRequirementImpl
 
 -