com.springsource.util.osgi.manifest
Interface ImportedPackage

All Superinterfaces:
Imported, Parameterised, Parseable
All Known Implementing Classes:
StandardImportedPackage

public interface ImportedPackage
extends Imported

Represents a single entry in a bundle's Import-Package header.

Concurrent Semantics
May not be thread-safe.

Since:
Jersey

Method Summary
 java.lang.String getBundleSymbolicName()
          Returns the value of the import's bundle-symbolic-name attribute.
 VersionRange getBundleVersion()
          Returns the value of the import's bundle-version attribute.
 java.lang.String getPackageName()
          Returns the name of the package that is imported, never null.
 void setBundleSymbolicName(java.lang.String bundleSymbolicName)
          Sets the value of the import's bundle-symbolic-name attribute.
 void setBundleVersion(VersionRange versionRange)
          Sets the value of the import's bundle-version attribute.
 void setPackageName(java.lang.String packageName)
          Sets the name of the imported package.
 
Methods inherited from interface com.springsource.util.osgi.manifest.Imported
getResolution, getVersion, setResolution, setVersion
 
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

getPackageName

java.lang.String getPackageName()
Returns the name of the package that is imported, never null.

Returns:
the name of the imported package

setPackageName

void setPackageName(java.lang.String packageName)
Sets the name of the imported package.

Parameters:
packageName - the imported package's name

getBundleVersion

VersionRange getBundleVersion()
Returns the value of the import's bundle-version attribute. If no such attribute is specified the default version range of [0, infinity) is returned.

Returns:
The value of the bundle-version attribute.

setBundleVersion

void setBundleVersion(VersionRange versionRange)
Sets the value of the import's bundle-version attribute.

Parameters:
versionRange - the value of the bundle-version attribute.

getBundleSymbolicName

java.lang.String getBundleSymbolicName()
Returns the value of the import's bundle-symbolic-name attribute. If no such attribute is specified null is returned.

Returns:
The value of the import's bundle-symbolic-name attribute.

setBundleSymbolicName

void setBundleSymbolicName(java.lang.String bundleSymbolicName)
Sets the value of the import's bundle-symbolic-name attribute.

Parameters:
bundleSymbolicName - the value of the bundle-symbolic-name attribute.