|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.springsource.util.osgi.manifest.internal.BaseParameterised
com.springsource.util.osgi.manifest.internal.StandardFragmentHost
class StandardFragmentHost
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(HeaderParser parser)
Method Detail |
---|
HeaderDeclaration parse(HeaderParser parser, java.lang.String parseString)
parse
in class BaseParameterised
public java.lang.String getBundleSymbolicName()
null
if no Fragment-Host
is specified.
getBundleSymbolicName
in interface FragmentHost
public FragmentHost.Extension getExtension()
extension
directive, or null
if no such directive is specified.
getExtension
in interface FragmentHost
public void setBundleSymbolicName(java.lang.String hostName)
setBundleSymbolicName
in interface FragmentHost
hostName
- the bundle symbolic name of the fragment's hostpublic void setExtension(FragmentHost.Extension extension)
extension
directive.
setExtension
in interface FragmentHost
extension
- the value for the extension directivepublic VersionRange getBundleVersion()
bundle-version
attribute. If no such attribute is specified, returns the
default version range of [0, infinity).
getBundleVersion
in interface FragmentHost
bundle-version
attribute.public void setBundleVersion(VersionRange versionRange)
bundle-version
directive.
setBundleVersion
in interface FragmentHost
versionRange
- the value for the bundle-version
directive.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |