public class BundleRevisionImpl extends BundleReferenceImpl implements BundleRevision
BUNDLE_NAMESPACE, HOST_NAMESPACE, PACKAGE_NAMESPACE, TYPE_FRAGMENT| Modifier and Type | Method and Description |
|---|---|
java.util.List<Capability> |
getCapabilities(java.lang.String namespace)
Returns the capabilities declared by this resource.
|
java.util.List<BundleCapability> |
getDeclaredCapabilities(java.lang.String namespace)
Returns the capabilities declared by this bundle revision.
|
java.util.List<BundleRequirement> |
getDeclaredRequirements(java.lang.String namespace)
Returns the requirements declared by this bundle revision.
|
java.util.List<Requirement> |
getRequirements(java.lang.String namespace)
Returns the requirements declared by this bundle resource.
|
java.lang.String |
getSymbolicName()
Returns the symbolic name for this bundle revision.
|
int |
getTypes()
Returns the special types of this bundle revision.
|
Version |
getVersion()
Returns the version for this bundle revision.
|
BundleWiring |
getWiring()
Returns the bundle wiring which is using this bundle revision.
|
java.lang.String |
toString() |
getBundleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBundlepublic java.lang.String getSymbolicName()
BundleRevisiongetSymbolicName in interface BundleRevisionBundle.getSymbolicName()public Version getVersion()
BundleRevisiongetVersion in interface BundleRevisionVersion.emptyVersion if this bundle revision has no
version information.Bundle.getVersion()public java.util.List<BundleCapability> getDeclaredCapabilities(java.lang.String namespace)
BundleRevisiongetDeclaredCapabilities in interface BundleRevisionnamespace - The namespace of the declared capabilities to return or
null to return the declared capabilities from all
namespaces.BundleCapabilitys from the specified namespace. The
returned list will be empty if this bundle revision declares no
capabilities in the specified namespace. The list contains the
declared capabilities in the order they are specified in the
manifest.public java.util.List<BundleRequirement> getDeclaredRequirements(java.lang.String namespace)
BundleRevisiongetDeclaredRequirements in interface BundleRevisionnamespace - The namespace of the declared requirements to return or
null to return the declared requirements from all
namespaces.BundleRequirements from the specified namespace. The
returned list will be empty if this bundle revision declares no
requirements in the specified namespace. The list contains the
declared requirements in the order they are specified in the
manifest.public java.util.List<Capability> getCapabilities(java.lang.String namespace)
BundleRevision
This method returns the same value as
BundleRevision.getDeclaredCapabilities(String).
getCapabilities in interface BundleRevisiongetCapabilities in interface Resourcenamespace - The namespace of the declared capabilities to return or
null to return the declared capabilities from all
namespaces.Capabilitys
from the specified namespace. The returned list will be empty if
this resource declares no capabilities in the specified
namespace.public java.util.List<Requirement> getRequirements(java.lang.String namespace)
BundleRevision
This method returns the same value as
BundleRevision.getDeclaredRequirements(String).
getRequirements in interface BundleRevisiongetRequirements in interface Resourcenamespace - The namespace of the declared requirements to return or
null to return the declared requirements from all
namespaces.Requirement
s from the specified namespace. The returned list will be empty
if this resource declares no requirements in the specified
namespace.public int getTypes()
BundleRevisionIf this bundle revision is not one or more of the defined types then 0 is returned.
getTypes in interface BundleRevisionpublic BundleWiring getWiring()
BundleRevisiongetWiring in interface BundleRevisionnull if no bundle wiring is using this bundle revision.BundleWiring.getRevision()public java.lang.String toString()
toString in class java.lang.Object