org.eclipse.osgi.service.resolver
Interface ImportPackageSpecification

All Superinterfaces:
java.lang.Cloneable, VersionConstraint

public interface ImportPackageSpecification
extends VersionConstraint

A representation of one package import constraint as seen in a bundle manifest and managed by a state and resolver.

Clients may implement this interface.

Since:
3.1

Field Summary
static java.lang.String RESOLUTION_DYNAMIC
          The dynamic resolution directive value.
static java.lang.String RESOLUTION_OPTIONAL
          The optional resolution directive value.
static java.lang.String RESOLUTION_STATIC
          The static resolution directive value.
 
Method Summary
 java.util.Map getAttributes()
          Returns the arbitrary attributes which this import package may be resolved to.
 java.lang.String getBundleSymbolicName()
          Returns the symbolic name of the bundle this import package must be resolved to.
 VersionRange getBundleVersionRange()
          Returns the version range which this import package may be resolved to.
 java.lang.Object getDirective(java.lang.String key)
          Returns the specified directive that control this import package.
 java.util.Map getDirectives()
          Returns the directives that control this import package.
 
Methods inherited from interface org.eclipse.osgi.service.resolver.VersionConstraint
getBundle, getName, getSupplier, getVersionRange, isResolved, isSatisfiedBy
 

Field Detail

RESOLUTION_STATIC

static final java.lang.String RESOLUTION_STATIC
The static resolution directive value.

See Also:
Constant Field Values

RESOLUTION_OPTIONAL

static final java.lang.String RESOLUTION_OPTIONAL
The optional resolution directive value.

See Also:
Constant Field Values

RESOLUTION_DYNAMIC

static final java.lang.String RESOLUTION_DYNAMIC
The dynamic resolution directive value.

See Also:
Constant Field Values
Method Detail

getBundleSymbolicName

java.lang.String getBundleSymbolicName()
Returns the symbolic name of the bundle this import package must be resolved to.

Returns:
the symbolic name of the bundle this import pacakge must be resolved to. A value of null indicates any symbolic name.

getBundleVersionRange

VersionRange getBundleVersionRange()
Returns the version range which this import package may be resolved to.

Returns:
the version range which this import package may be resolved to.

getAttributes

java.util.Map getAttributes()
Returns the arbitrary attributes which this import package may be resolved to.

Returns:
the arbitrary attributes which this import package may be resolved to.

getDirectives

java.util.Map getDirectives()
Returns the directives that control this import package.

Returns:
the directives that control this import package.

getDirective

java.lang.Object getDirective(java.lang.String key)
Returns the specified directive that control this import package.

Returns:
the specified directive that control this import package.