public class BundleRequirementImpl extends DTOId 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, waitequals, hashCodepublic java.lang.String getNamespace()
BundleRequirementgetNamespace in interface BundleRequirementgetNamespace in interface Requirementpublic 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 BundleRequirementgetDirectives in interface Requirementpublic java.util.Map<java.lang.String,java.lang.Object> getAttributes()
BundleRequirementRequirement attributes have no specified semantics and are considered extra user defined information.
getAttributes in interface BundleRequirementgetAttributes in interface Requirementpublic BundleRevision getRevision()
BundleRequirementgetRevision in interface BundleRequirementpublic BundleRevision getResource()
BundleRequirement
This method returns the same value as BundleRequirement.getRevision().
getResource in interface BundleRequirementgetResource in interface Requirementnull
if this requirement is synthesized.public boolean matches(BundleCapability capability)
BundleRequirementmatches in interface BundleRequirementcapability - 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