public class BundleRequirementImpl extends java.lang.Object implements BundleRequirement
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes()
Returns the attributes of this requirement.
|
java.util.Map<java.lang.String,java.lang.String> |
getDirectives()
Returns the directives of this requirement.
|
java.lang.String |
getNamespace()
Returns the namespace of this requirement.
|
BundleRevision |
getResource()
Returns the resource declaring this requirement.
|
BundleRevision |
getRevision()
Returns the bundle revision declaring this requirement.
|
boolean |
matches(BundleCapability capability)
Returns whether the specified capability matches this requirement.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode
public java.lang.String getNamespace()
BundleRequirement
getNamespace
in interface BundleRequirement
getNamespace
in interface Requirement
public java.util.Map<java.lang.String,java.lang.String> getDirectives()
BundleRequirement
All requirement directives not specified by the
wiring namespaces
have no specified
semantics and are considered extra user defined information.
getDirectives
in interface BundleRequirement
getDirectives
in interface Requirement
public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
BundleRequirement
Requirement attributes have no specified semantics and are considered extra user defined information.
getAttributes
in interface BundleRequirement
getAttributes
in interface Requirement
public BundleRevision getRevision()
BundleRequirement
getRevision
in interface BundleRequirement
public BundleRevision getResource()
BundleRequirement
This method returns the same value as BundleRequirement.getRevision()
.
getResource
in interface BundleRequirement
getResource
in interface Requirement
null
if this requirement is synthesized.public boolean matches(BundleCapability capability)
BundleRequirement
matches
in interface BundleRequirement
capability
- The capability to match to this requirement.true
if the specified capability has the same
namespace
as this requirement and the
filter for this requirement matches the
attributes of the
specified capability
; false
otherwise.public java.lang.String toString()
toString
in class java.lang.Object