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

java.lang.Object
  extended by com.springsource.util.osgi.manifest.internal.CompoundParseable<ImportedLibrary>
      extended by com.springsource.util.osgi.manifest.internal.StandardImportLibrary
All Implemented Interfaces:
ImportLibrary, Parseable

public class StandardImportLibrary
extends CompoundParseable<ImportedLibrary>
implements ImportLibrary

Concurrent Semantics
Not thread-safe


Field Summary
 
Fields inherited from class com.springsource.util.osgi.manifest.internal.CompoundParseable
components, parser
 
Constructor Summary
StandardImportLibrary(HeaderParser parser)
           
 
Method Summary
 ImportedLibrary addImportedLibrary(java.lang.String importedLibrary)
          Adds an import of the library with the supplied symbolic name to this Import-Library header.
 java.util.List<ImportedLibrary> getImportedLibraries()
          Returns a List of the libraries that are imported.
(package private)  ImportedLibrary 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

StandardImportLibrary

StandardImportLibrary(HeaderParser parser)
Method Detail

parse

java.util.List<HeaderDeclaration> parse(java.lang.String parseString)

Specified by:
parse in class CompoundParseable<ImportedLibrary>

addImportedLibrary

public ImportedLibrary addImportedLibrary(java.lang.String importedLibrary)
Adds an import of the library with the supplied symbolic name to this Import-Library header.

Specified by:
addImportedLibrary in interface ImportLibrary
Parameters:
importedLibrary - The name of the imported library.
Returns:
the newly-created ImportedLibrary.

getImportedLibraries

public java.util.List<ImportedLibrary> getImportedLibraries()
Returns a List of the libraries that are imported. Returns an empty List if no libraries are imported.

Specified by:
getImportedLibraries in interface ImportLibrary
Returns:
the imported libraries.

newEntry

ImportedLibrary newEntry(java.lang.String name)

Specified by:
newEntry in class CompoundParseable<ImportedLibrary>