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

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

 class StandardBundleSymbolicName
extends BaseParameterised
implements BundleSymbolicName

Concurrent Semantics
Not thread-safe.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.springsource.util.osgi.manifest.BundleSymbolicName
BundleSymbolicName.FragmentAttachment
 
Field Summary
 
Fields inherited from class com.springsource.util.osgi.manifest.internal.BaseParameterised
name
 
Constructor Summary
StandardBundleSymbolicName(HeaderParser parser)
           
 
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.
(package private)  HeaderDeclaration parse(HeaderParser parser, java.lang.String parseString)
           
 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 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

StandardBundleSymbolicName

StandardBundleSymbolicName(HeaderParser parser)
Method Detail

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