com.springsource.util.osgi.manifest.internal
Class StandardFragmentHost

java.lang.Object
  extended by com.springsource.util.osgi.manifest.internal.BaseParameterised
      extended by com.springsource.util.osgi.manifest.internal.StandardFragmentHost
All Implemented Interfaces:
FragmentHost, Parameterised, Parseable

 class StandardFragmentHost
extends BaseParameterised
implements FragmentHost

Concurrent Semantics
Not thread-safe.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.springsource.util.osgi.manifest.FragmentHost
FragmentHost.Extension
 
Field Summary
 
Fields inherited from class com.springsource.util.osgi.manifest.internal.BaseParameterised
name
 
Constructor Summary
StandardFragmentHost(HeaderParser parser)
           
 
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.
(package private)  HeaderDeclaration parse(HeaderParser parser, java.lang.String parseString)
          
 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 class com.springsource.util.osgi.manifest.internal.BaseParameterised
equals, getAttributes, getDirectives, hashCode, resetFromParseString, toParseString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.springsource.util.osgi.manifest.Parameterised
getAttributes, getDirectives
 
Methods inherited from interface com.springsource.util.osgi.manifest.Parseable
resetFromParseString, toParseString
 

Constructor Detail

StandardFragmentHost

StandardFragmentHost(HeaderParser parser)
Method Detail

parse

HeaderDeclaration parse(HeaderParser parser,
                        java.lang.String parseString)

Specified by:
parse in class BaseParameterised

getBundleSymbolicName

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

Specified by:
getBundleSymbolicName in interface FragmentHost
Returns:
the bundle symbolic name

getExtension

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

Specified by:
getExtension in interface FragmentHost
Returns:
the extension directive

setBundleSymbolicName

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

Specified by:
setBundleSymbolicName in interface FragmentHost
Parameters:
hostName - the bundle symbolic name of the fragment's host

setExtension

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

Specified by:
setExtension in interface FragmentHost
Parameters:
extension - the value for the extension directive

getBundleVersion

public 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).

Specified by:
getBundleVersion in interface FragmentHost
Returns:
the value of the bundle-version attribute.

setBundleVersion

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

Specified by:
setBundleVersion in interface FragmentHost
Parameters:
versionRange - the value for the bundle-version directive.