com.springsource.util.osgi.manifest
Interface Imported

All Superinterfaces:
Parameterised, Parseable
All Known Subinterfaces:
ImportedBundle, ImportedLibrary, ImportedPackage
All Known Implementing Classes:
BaseImported, StandardImportedBundle, StandardImportedLibrary, StandardImportedPackage

public interface Imported
extends Parameterised

A common interface for the entries in the three import headers: Import-Package, Import-Bundle, and Import-Library.

Concurrent Semantics
May not be thread-safe.

See Also:
ImportedPackage, ImportedBundle, ImportedLibrary

Method Summary
 Resolution getResolution()
          Returns the value of the import's resolution directive.
 VersionRange getVersion()
          Returns the version range of the import.
 void setResolution(Resolution resolution)
          Sets the value of the import's resolution directive.
 void setVersion(VersionRange versionRange)
          Sets the version range of the import.
 
Methods inherited from interface com.springsource.util.osgi.manifest.Parameterised
getAttributes, getDirectives
 
Methods inherited from interface com.springsource.util.osgi.manifest.Parseable
resetFromParseString, toParseString
 

Method Detail

getVersion

VersionRange getVersion()
Returns the version range of the import. If no version attribute is specified the default range of [0, infinity) is returned.

Returns:
the import's version range

setVersion

void setVersion(VersionRange versionRange)
Sets the version range of the import.

Parameters:
versionRange - the import's version range.

getResolution

Resolution getResolution()
Returns the value of the import's resolution directive. If no such directive is specified the default value of Resolution.MANDATORY is returned.

Returns:
the value of the import's resolution directive.

setResolution

void setResolution(Resolution resolution)
Sets the value of the import's resolution directive.

Parameters:
resolution - The import's resolution directive