|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.felix.framework.wiring.BundleRequirementImpl
public class BundleRequirementImpl
| Constructor Summary | |
|---|---|
BundleRequirementImpl(BundleRevision revision,
String namespace,
Map<String,String> dirs,
Map<String,Object> attrs)
|
|
BundleRequirementImpl(BundleRevision revision,
String namespace,
Map<String,String> dirs,
Map<String,Object> attrs,
SimpleFilter filter)
|
|
| Method Summary | |
|---|---|
Map<String,Object> |
getAttributes()
Returns the attributes of this requirement. |
Map<String,String> |
getDirectives()
Returns the directives of this requirement. |
SimpleFilter |
getFilter()
|
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 |
isOptional()
|
boolean |
matches(BundleCapability cap)
Returns whether the specified capability matches this requirement. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.osgi.resource.Requirement |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public BundleRequirementImpl(BundleRevision revision,
String namespace,
Map<String,String> dirs,
Map<String,Object> attrs,
SimpleFilter filter)
public BundleRequirementImpl(BundleRevision revision,
String namespace,
Map<String,String> dirs,
Map<String,Object> attrs)
| Method Detail |
|---|
public String getNamespace()
BundleRequirement
getNamespace in interface BundleRequirementgetNamespace in interface Requirementpublic Map<String,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 Map<String,Object> getAttributes()
BundleRequirementRequirement attributes have no specified semantics and are considered extra user defined information.
getAttributes in interface BundleRequirementgetAttributes in interface Requirementpublic 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 BundleRevision getRevision()
BundleRequirement
getRevision in interface BundleRequirementpublic boolean matches(BundleCapability cap)
BundleRequirement
matches in interface BundleRequirementcap - 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 boolean isOptional()
public SimpleFilter getFilter()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||