|
OSGi™ Core Release 5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Capability
A capability that has been declared from a Resource
.
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.
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Compares this Capability to another Capability . |
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.String |
getNamespace()
Returns the namespace of this capability. |
Resource |
getResource()
Returns the resource declaring this capability. |
int |
hashCode()
Returns the hashCode of this Capability . |
Method Detail |
---|
java.lang.String getNamespace()
java.util.Map<java.lang.String,java.lang.String> getDirectives()
java.util.Map<java.lang.String,java.lang.Object> getAttributes()
Resource getResource()
boolean equals(java.lang.Object obj)
Capability
to another Capability
.
This Capability
is equal to another Capability
if they
have the same namespace, directives and attributes and are declared by
the same resource.
equals
in class java.lang.Object
obj
- The object to compare against this Capability
.
true
if this Capability
is equal to the other
object; false
otherwise.int hashCode()
Capability
.
hashCode
in class java.lang.Object
Capability
.
|
OSGi™ Core Release 5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |