com.springsource.util.osgi.manifest.internal
Class StandardBundleSymbolicName
java.lang.Object
com.springsource.util.osgi.manifest.internal.BaseParameterised
com.springsource.util.osgi.manifest.internal.StandardBundleSymbolicName
- All Implemented Interfaces:
- BundleSymbolicName, Parameterised, Parseable
class StandardBundleSymbolicName
- extends BaseParameterised
- implements BundleSymbolicName
Concurrent Semantics
Not thread-safe.
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
StandardBundleSymbolicName
StandardBundleSymbolicName(HeaderParser parser)
parse
HeaderDeclaration parse(HeaderParser parser,
java.lang.String parseString)
- Specified by:
parse
in class BaseParameterised
getFragmentAttachment
public BundleSymbolicName.FragmentAttachment getFragmentAttachment()
- Returns value of the
fragment-attachment
directive. Returns the default value of ALWAYS
if no fragment-attachment
directive is specified.
- Specified by:
getFragmentAttachment
in interface BundleSymbolicName
- Returns:
- the
fragment-attachment
directive
getSymbolicName
public java.lang.String getSymbolicName()
- Returns the header's symbolic name, or
null
if no symbolic name is specified.
- Specified by:
getSymbolicName
in interface BundleSymbolicName
- Returns:
- the symbolic name
isSingleton
public boolean isSingleton()
- Returns the value of the
singleton
directive. Returns the default value of false
if no
singleton
directive is specified.
- Specified by:
isSingleton
in interface BundleSymbolicName
- Returns:
- the singleton directive
setFragmentAttachment
public void setFragmentAttachment(BundleSymbolicName.FragmentAttachment fragmentAttachment)
- Sets the value of the
fragment-attachment
directive.
- Specified by:
setFragmentAttachment
in interface BundleSymbolicName
- Parameters:
fragmentAttachment
- the fragment-attachment directive's value
setSingleton
public void setSingleton(boolean singleton)
- Sets the value of the
singleton
directive.
- Specified by:
setSingleton
in interface BundleSymbolicName
- Parameters:
singleton
- the singleton directive's value
setSymbolicName
public void setSymbolicName(java.lang.String symbolicName)
- Sets the header's symbolic name
- Specified by:
setSymbolicName
in interface BundleSymbolicName
- Parameters:
symbolicName
- the symbolic name