Package org.eclipse.equinox.p2.metadata
Interface IProvidedCapability
public interface IProvidedCapability
Describes a capability that is exposed by an installable unit. These
capabilities can satisfy the dependencies of other installable units, causing
the unit providing the dependency to be installed.
Instances of this class are handle objects and do not necessarily reflect
entities that exist in any particular profile or repository. These handle
objects can be created using MetadataFactory
.
- Since:
- 2.0
- See Also:
- Restriction:
- This interface is not intended to be implemented by clients.
- Restriction:
- This interface is not intended to be extended by clients.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The name of the property under which the capability version is stored. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether this provided capability is equal to the given object.getName()
A full description of this capability including the name and the version.
-
Field Details
-
PROPERTY_VERSION
The name of the property under which the capability version is stored. Can be used withgetProperties()
. The same value can be obtained withgetVersion()
- Since:
- 2.4
- See Also:
-
-
Method Details
-
getNamespace
String getNamespace()- Returns:
- String the namespace of this capability.
- Since:
- 2.9
-
getName
String getName()- Returns:
- String the attribute stored under a key equal to the
getNamespace()
attribute of this capability. - Since:
- 2.9
-
getVersion
Version getVersion()- Returns:
- String the special
PROPERTY_VERSION
attribute of this capability. - Since:
- 2.9
-
getProperties
A full description of this capability including the name and the version.Such a description can be used to match this capability with an
LDAP filter
for example.- Returns:
- An unmodifiable map
- Since:
- 2.9
-
equals
Returns whether this provided capability is equal to the given object. This method returns true if:- Both this object and the given object are of type IProvidedCapability
- The result of
getNamespace()
on both objects are equal - The result of
getProperties()
on both objects are equal
-