com.springsource.util.osgi.manifest.internal
Class StandardExportPackage
java.lang.Object
com.springsource.util.osgi.manifest.internal.CompoundParseable<ExportedPackage>
com.springsource.util.osgi.manifest.internal.StandardExportPackage
- All Implemented Interfaces:
- ExportPackage, Parseable
class StandardExportPackage
- extends CompoundParseable<ExportedPackage>
- implements ExportPackage
Concurrent Semantics
Not thread-safe.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StandardExportPackage
StandardExportPackage(HeaderParser parser)
parse
java.util.List<HeaderDeclaration> parse(java.lang.String parseString)
-
- Specified by:
parse
in class CompoundParseable<ExportedPackage>
addExportedPackage
public ExportedPackage addExportedPackage(java.lang.String exportedPackage)
- Adds an export of the package with the supplied name to this
Export-Package
header.
- Specified by:
addExportedPackage
in interface ExportPackage
- Parameters:
exportedPackage
- The name of the exported package.
- Returns:
- the newly-created
ExportedPackage
.
getExportedPackages
public java.util.List<ExportedPackage> getExportedPackages()
- Returns a
List
of the packages that are exported. Returns an empty List
if no packages
are exported.
- Specified by:
getExportedPackages
in interface ExportPackage
- Returns:
- the exported packages.
newEntry
ExportedPackage newEntry(java.lang.String name)
-
- Specified by:
newEntry
in class CompoundParseable<ExportedPackage>