public class BundleRequirementImpl extends java.lang.Object implements BundleRequirement
限定符和类型 | 方法和说明 |
---|---|
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
在接口中 BundleRequirement
getNamespace
在接口中 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
在接口中 BundleRequirement
getDirectives
在接口中 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
在接口中 BundleRequirement
getAttributes
在接口中 Requirement
public BundleRevision getRevision()
BundleRequirement
getRevision
在接口中 BundleRequirement
public BundleRevision getResource()
BundleRequirement
This method returns the same value as BundleRequirement.getRevision()
.
getResource
在接口中 BundleRequirement
getResource
在接口中 Requirement
null
if this requirement is synthesized.public boolean matches(BundleCapability capability)
BundleRequirement
matches
在接口中 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
在类中 java.lang.Object