com.springsource.util.osgi.manifest
Interface DynamicallyImportedPackage

All Superinterfaces:
Parameterised, Parseable
All Known Implementing Classes:
StandardDynamicallyImportedPackage

public interface DynamicallyImportedPackage
extends Parameterised

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

Concurrent Semantics
May not be thread safe.


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 (possibly wildcarded) name of the package in this entry.
 VersionRange getVersion()
          Returns the version range of the import.
 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 package in this entry.
 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

getPackageName

java.lang.String getPackageName()
Returns the (possibly wildcarded) name of the package in this entry.

Returns:
the package name

setPackageName

void setPackageName(java.lang.String packageName)
Sets the name of the package in this entry.

Parameters:
packageName - the 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.

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.