com.springsource.util.osgi.manifest.internal
Class StandardImportLibrary
java.lang.Object
com.springsource.util.osgi.manifest.internal.CompoundParseable<ImportedLibrary>
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StandardImportLibrary
StandardImportLibrary(HeaderParser parser)
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>