类 WrappedRequirement
- java.lang.Object
-
- org.apache.felix.framework.wiring.BundleRequirementImpl
-
- org.apache.felix.framework.resolver.WrappedRequirement
-
- 所有已实现的接口:
BundleRequirement,Requirement
public class WrappedRequirement extends BundleRequirementImpl
-
-
构造器概要
构造器 构造器 说明 WrappedRequirement(BundleRevision host, BundleRequirementImpl req)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanequals(java.lang.Object obj)Compares thisRequirementto anotherRequirement.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.SimpleFiltergetFilter()java.lang.StringgetNamespace()Returns the namespace of this requirement.BundleRequirementImplgetOriginalRequirement()BundleRevisiongetRevision()Returns the bundle revision declaring this requirement.inthashCode()Returns the hashCode of thisRequirement.booleanisOptional()java.lang.StringtoString()-
从类继承的方法 org.apache.felix.framework.wiring.BundleRequirementImpl
getResource, matches
-
-
-
-
构造器详细资料
-
WrappedRequirement
public WrappedRequirement(BundleRevision host, BundleRequirementImpl req)
-
-
方法详细资料
-
equals
public boolean equals(java.lang.Object obj)
从接口复制的说明:RequirementCompares thisRequirementto anotherRequirement.This
Requirementis equal to anotherRequirementif they have the same namespace, directives and attributes and are declared by the same resource.- 指定者:
equals在接口中Requirement- 覆盖:
equals在类中java.lang.Object- 参数:
obj- The object to compare against thisRequirement.- 返回:
trueif thisRequirementis equal to the other object;falseotherwise.
-
hashCode
public int hashCode()
从接口复制的说明:RequirementReturns the hashCode of thisRequirement.- 指定者:
hashCode在接口中Requirement- 覆盖:
hashCode在类中java.lang.Object- 返回:
- The hashCode of this
Requirement.
-
getOriginalRequirement
public BundleRequirementImpl getOriginalRequirement()
-
getRevision
public BundleRevision getRevision()
从接口复制的说明:BundleRequirementReturns the bundle revision declaring this requirement.- 指定者:
getRevision在接口中BundleRequirement- 覆盖:
getRevision在类中BundleRequirementImpl- 返回:
- The bundle revision declaring this requirement.
-
getNamespace
public java.lang.String getNamespace()
从接口复制的说明:BundleRequirementReturns the namespace of this requirement.- 指定者:
getNamespace在接口中BundleRequirement- 指定者:
getNamespace在接口中Requirement- 覆盖:
getNamespace在类中BundleRequirementImpl- 返回:
- The namespace of this requirement.
-
getFilter
public SimpleFilter getFilter()
- 覆盖:
getFilter在类中BundleRequirementImpl
-
isOptional
public boolean isOptional()
- 覆盖:
isOptional在类中BundleRequirementImpl
-
getDirectives
public java.util.Map<java.lang.String,java.lang.String> getDirectives()
从接口复制的说明:BundleRequirementReturns 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在接口中BundleRequirement- 指定者:
getDirectives在接口中Requirement- 覆盖:
getDirectives在类中BundleRequirementImpl- 返回:
- An unmodifiable map of directive names to directive values for this requirement, or an empty map if this requirement has no directives.
-
getAttributes
public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
从接口复制的说明:BundleRequirementReturns the attributes of this requirement.Requirement attributes have no specified semantics and are considered extra user defined information.
- 指定者:
getAttributes在接口中BundleRequirement- 指定者:
getAttributes在接口中Requirement- 覆盖:
getAttributes在类中BundleRequirementImpl- 返回:
- An unmodifiable map of attribute names to attribute values for this requirement, or an empty map if this requirement has no attributes.
-
toString
public java.lang.String toString()
- 覆盖:
toString在类中BundleRequirementImpl
-
-