public class BundleNameVersionCapability extends DTOId implements BundleCapability
Modifier and Type | Method and Description |
---|---|
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.
|
BundleRevision |
getResource()
Returns the resource declaring this capability.
|
BundleRevision |
getRevision()
Returns the bundle revision declaring this capability.
|
int |
hashCode()
Returns the hashCode of this
Capability . |
java.lang.String |
toString() |
public java.lang.String getNamespace()
BundleCapability
getNamespace
in interface BundleCapability
getNamespace
in interface Capability
public java.util.Map<java.lang.String,java.lang.String> getDirectives()
BundleCapability
All capability directives not specified by the
wiring namespaces
have no specified
semantics and are considered extra user defined information.
getDirectives
in interface BundleCapability
getDirectives
in interface Capability
public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
BundleCapability
getAttributes
in interface BundleCapability
getAttributes
in interface Capability
public BundleRevision getRevision()
BundleCapability
getRevision
in interface BundleCapability
public BundleRevision getResource()
BundleCapability
This method returns the same value as BundleCapability.getRevision()
.
getResource
in interface BundleCapability
getResource
in interface Capability
public int hashCode()
Capability
Capability
.hashCode
in interface Capability
hashCode
in class java.lang.Object
Capability
.public boolean equals(java.lang.Object obj)
Capability
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 interface Capability
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.public java.lang.String toString()
toString
in class java.lang.Object