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

java.lang.Object
  extended by com.springsource.util.osgi.manifest.internal.CompoundParseable<ImportedBundle>
      extended by com.springsource.util.osgi.manifest.internal.StandardImportBundle
All Implemented Interfaces:
ImportBundle, Parseable

 class StandardImportBundle
extends CompoundParseable<ImportedBundle>
implements ImportBundle

Concurrent Semantics
Not thread-safe.


Field Summary
 
Fields inherited from class com.springsource.util.osgi.manifest.internal.CompoundParseable
components, parser
 
Constructor Summary
StandardImportBundle(HeaderParser parser)
           
 
Method Summary
 ImportedBundle addImportedBundle(java.lang.String importedBundle)
          Adds an import of the bundle with the supplied symbolic name to this Import-Bundle header.
 java.util.List<ImportedBundle> getImportedBundles()
          Returns a List of the bundles that are imported.
(package private)  ImportedBundle newEntry(java.lang.String name)
          
(package private)  java.util.List<HeaderDeclaration> parse(java.lang.String parseString)
           
 
Methods inherited from class com.springsource.util.osgi.manifest.internal.CompoundParseable
add, resetFromParseString, toParseString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.springsource.util.osgi.manifest.Parseable
resetFromParseString, toParseString
 

Constructor Detail

StandardImportBundle

StandardImportBundle(HeaderParser parser)
Method Detail

addImportedBundle

public ImportedBundle addImportedBundle(java.lang.String importedBundle)
Adds an import of the bundle with the supplied symbolic name to this Import-Bundle header.

Specified by:
addImportedBundle in interface ImportBundle
Parameters:
importedBundle - The name of the imported bundle
Returns:
the newly-created ImportBundle.

getImportedBundles

public java.util.List<ImportedBundle> getImportedBundles()
Returns a List of the bundles that are imported. Returns an empty List if no bundles are imported.

Specified by:
getImportedBundles in interface ImportBundle
Returns:
the imported bundles.

parse

java.util.List<HeaderDeclaration> parse(java.lang.String parseString)
Specified by:
parse in class CompoundParseable<ImportedBundle>

newEntry

ImportedBundle newEntry(java.lang.String name)

Specified by:
newEntry in class CompoundParseable<ImportedBundle>