接口 Capability
-
- 所有已知子接口:
BundleCapability,HostedCapability
- 所有已知实现类:
BundleCapabilityImpl,WrappedCapability
@ConsumerType public interface CapabilityA capability that has been declared from aResource.Instances of this type must be effectively immutable. That is, for a given instance of this interface, the methods defined by this interface must always return the same result.
- 作者:
- $Id: e79d11402e14e170443c8a2a9da835391cd1ccc8 $
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 booleanequals(java.lang.Object obj)Compares thisCapabilityto anotherCapability.java.util.Map<java.lang.String,java.lang.Object>getAttributes()Returns the attributes of this capability.java.util.Map<java.lang.String,java.lang.String>getDirectives()Returns the directives of this capability.java.lang.StringgetNamespace()Returns the namespace of this capability.ResourcegetResource()Returns the resource declaring this capability.inthashCode()Returns the hashCode of thisCapability.
-
-
-
方法详细资料
-
getNamespace
java.lang.String getNamespace()
Returns the namespace of this capability.- 返回:
- The namespace of this capability.
-
getDirectives
java.util.Map<java.lang.String,java.lang.String> getDirectives()
Returns the directives of this capability.- 返回:
- An unmodifiable map of directive names to directive values for this capability, or an empty map if this capability has no directives.
-
getAttributes
java.util.Map<java.lang.String,java.lang.Object> getAttributes()
Returns the attributes of this capability.- 返回:
- An unmodifiable map of attribute names to attribute values for this capability, or an empty map if this capability has no attributes.
-
getResource
Resource getResource()
Returns the resource declaring this capability.- 返回:
- The resource declaring this capability.
-
equals
boolean equals(java.lang.Object obj)
Compares thisCapabilityto anotherCapability.This
Capabilityis equal to anotherCapabilityif they have the same namespace, directives and attributes and are declared by the same resource.- 覆盖:
equals在类中java.lang.Object- 参数:
obj- The object to compare against thisCapability.- 返回:
trueif thisCapabilityis equal to the other object;falseotherwise.
-
hashCode
int hashCode()
Returns the hashCode of thisCapability.- 覆盖:
hashCode在类中java.lang.Object- 返回:
- The hashCode of this
Capability.
-
-