接口 BundleRequirement
-
- 所有超级接口:
Requirement
- 所有已知实现类:
BundleRequirementImpl,WrappedRequirement
@ProviderType public interface BundleRequirement extends Requirement
A requirement that has been declared from abundle revision.- 作者:
- $Id: ac0578af567754bcd12c63a350c06afdd1bfec05 $
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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.StringgetNamespace()Returns the namespace of this requirement.BundleRevisiongetResource()Returns the resource declaring this requirement.BundleRevisiongetRevision()Returns the bundle revision declaring this requirement.booleanmatches(BundleCapability capability)Returns whether the specified capability matches this requirement.-
从接口继承的方法 org.osgi.resource.Requirement
equals, hashCode
-
-
-
-
方法详细资料
-
getRevision
BundleRevision getRevision()
Returns the bundle revision declaring this requirement.- 返回:
- The bundle revision declaring this requirement.
-
matches
boolean matches(BundleCapability capability)
Returns whether the specified capability matches this requirement.- 参数:
capability- The capability to match to this requirement.- 返回:
trueif the specified capability has the samenamespaceas this requirement and the filter for this requirement matches theattributes of the specified capability;falseotherwise.
-
getNamespace
java.lang.String getNamespace()
Returns the namespace of this requirement.- 指定者:
getNamespace在接口中Requirement- 返回:
- The namespace of this requirement.
-
getDirectives
java.util.Map<java.lang.String,java.lang.String> getDirectives()
Returns the directives of this requirement.All requirement directives not specified by the
wiring namespaceshave no specified semantics and are considered extra user defined information.- 指定者:
getDirectives在接口中Requirement- 返回:
- An unmodifiable map of directive names to directive values for this requirement, or an empty map if this requirement has no directives.
-
getAttributes
java.util.Map<java.lang.String,java.lang.Object> getAttributes()
Returns the attributes of this requirement.Requirement attributes have no specified semantics and are considered extra user defined information.
- 指定者:
getAttributes在接口中Requirement- 返回:
- An unmodifiable map of attribute names to attribute values for this requirement, or an empty map if this requirement has no attributes.
-
getResource
BundleRevision getResource()
Returns the resource declaring this requirement.This method returns the same value as
getRevision().- 指定者:
getResource在接口中Requirement- 返回:
- The resource declaring this requirement. This can be
nullif this requirement is synthesized. - 从以下版本开始:
- 1.1
-
-