com.springsource.util.osgi.manifest
Interface FragmentHost

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

public interface FragmentHost
extends Parameterised


Nested Class Summary
static class FragmentHost.Extension
          Enumeration of the valid values for the header's extension directive that applies when a fragment attaches to the system bundle.
 
Method Summary
 java.lang.String getBundleSymbolicName()
          Returns the bundle symbolic name specified in the header, or null if no Fragment-Host is specified.
 VersionRange getBundleVersion()
          Returns the value of the header's bundle-version attribute.
 FragmentHost.Extension getExtension()
          Returns the value of the header's extension directive, or null if no such directive is specified.
 void setBundleSymbolicName(java.lang.String hostName)
          Set the bundle symbolic name in the header
 void setBundleVersion(VersionRange versionRange)
          Sets the value of the header's bundle-version directive.
 void setExtension(FragmentHost.Extension extension)
          Set the value of the header's extension directive.
 
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

getBundleSymbolicName

java.lang.String getBundleSymbolicName()
Returns the bundle symbolic name specified in the header, or null if no Fragment-Host is specified.

Returns:
the bundle symbolic name

setBundleSymbolicName

void setBundleSymbolicName(java.lang.String hostName)
Set the bundle symbolic name in the header

Parameters:
hostName - the bundle symbolic name of the fragment's host

getExtension

FragmentHost.Extension getExtension()
Returns the value of the header's extension directive, or null if no such directive is specified.

Returns:
the extension directive

setExtension

void setExtension(FragmentHost.Extension extension)
Set the value of the header's extension directive.

Parameters:
extension - the value for the extension directive

getBundleVersion

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

Returns:
the value of the bundle-version attribute.

setBundleVersion

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

Parameters:
versionRange - the value for the bundle-version directive.