com.springsource.util.osgi.manifest
Interface BundleSymbolicName

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

public interface BundleSymbolicName
extends Parameterised

Represents a bundle's Bundle-SymbolicName header.

Concurrent Semantics
May not be thread safe.


Nested Class Summary
static class BundleSymbolicName.FragmentAttachment
          An enumeration of the legal values for a bundle symbolic name's fragment-attachment directive.
 
Method Summary
 BundleSymbolicName.FragmentAttachment getFragmentAttachment()
          Returns value of the fragment-attachment directive.
 java.lang.String getSymbolicName()
          Returns the header's symbolic name, or null if no symbolic name is specified.
 boolean isSingleton()
          Returns the value of the singleton directive.
 void setFragmentAttachment(BundleSymbolicName.FragmentAttachment fragmentAttachment)
          Sets the value of the fragment-attachment directive.
 void setSingleton(boolean singleton)
          Sets the value of the singleton directive.
 void setSymbolicName(java.lang.String symbolicName)
          Sets the header's symbolic name
 
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

getSymbolicName

java.lang.String getSymbolicName()
Returns the header's symbolic name, or null if no symbolic name is specified.

Returns:
the symbolic name

setSymbolicName

void setSymbolicName(java.lang.String symbolicName)
Sets the header's symbolic name

Parameters:
symbolicName - the symbolic name

isSingleton

boolean isSingleton()
Returns the value of the singleton directive. Returns the default value of false if no singleton directive is specified.

Returns:
the singleton directive

setSingleton

void setSingleton(boolean singleton)
Sets the value of the singleton directive.

Parameters:
singleton - the singleton directive's value

getFragmentAttachment

BundleSymbolicName.FragmentAttachment getFragmentAttachment()
Returns value of the fragment-attachment directive. Returns the default value of ALWAYS if no fragment-attachment directive is specified.

Returns:
the fragment-attachment directive

setFragmentAttachment

void setFragmentAttachment(BundleSymbolicName.FragmentAttachment fragmentAttachment)
Sets the value of the fragment-attachment directive.

Parameters:
fragmentAttachment - the fragment-attachment directive's value