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

java.lang.Object
  extended by com.springsource.util.osgi.manifest.internal.CompoundParseable<ExportedPackage>
      extended by com.springsource.util.osgi.manifest.internal.StandardExportPackage
All Implemented Interfaces:
ExportPackage, Parseable

 class StandardExportPackage
extends CompoundParseable<ExportedPackage>
implements ExportPackage

Concurrent Semantics
Not thread-safe.


Field Summary
 
Fields inherited from class com.springsource.util.osgi.manifest.internal.CompoundParseable
components, parser
 
Constructor Summary
StandardExportPackage(HeaderParser parser)
           
 
Method Summary
 ExportedPackage addExportedPackage(java.lang.String exportedPackage)
          Adds an export of the package with the supplied name to this Export-Package header.
 java.util.List<ExportedPackage> getExportedPackages()
          Returns a List of the packages that are exported.
(package private)  ExportedPackage 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

StandardExportPackage

StandardExportPackage(HeaderParser parser)
Method Detail

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>