com.springsource.util.osgi.manifest
Interface ImportPackage

All Superinterfaces:
Parseable
All Known Implementing Classes:
StandardImportPackage

public interface ImportPackage
extends Parseable

Represents the Import-Package header in a BundleManifest. Concurrent Semantics
May not be thread-safe.

Since:
Jersey

Method Summary
 ImportedPackage addImportedPackage(java.lang.String packageName)
          Adds an import of the package with the supplied name to this Import-Package header.
 java.util.List<ImportedPackage> getImportedPackages()
          Returns a List of the packages that are imported.
 
Methods inherited from interface com.springsource.util.osgi.manifest.Parseable
resetFromParseString, toParseString
 

Method Detail

getImportedPackages

java.util.List<ImportedPackage> getImportedPackages()
Returns a List of the packages that are imported. Returns an empty List if no packages are imported.

Returns:
the imported packages.

addImportedPackage

ImportedPackage addImportedPackage(java.lang.String packageName)
Adds an import of the package with the supplied name to this Import-Package header.

Parameters:
packageName - The name of the imported package.
Returns:
the newly-created ImportedPackage.