org.eclipse.osgi.internal.resolver
Class ExportPackageDescriptionImpl

java.lang.Object
  extended by org.eclipse.osgi.internal.resolver.ExportPackageDescriptionImpl
All Implemented Interfaces:
BaseDescription, ExportPackageDescription

public class ExportPackageDescriptionImpl
extends java.lang.Object
implements ExportPackageDescription


Field Summary
static java.lang.String EQUINOX_EE
           
protected  java.lang.Object monitor
           
 
Constructor Summary
ExportPackageDescriptionImpl()
           
 
Method Summary
 java.util.Map getAttributes()
          Returns the arbitrary attributes for this package.
 java.lang.Object getDirective(java.lang.String key)
          Returns the specified directive for this package.
 java.util.Map getDirectives()
          Returns the directives for this package.
 BundleDescription getExporter()
          Returns the exporter of this package.
 java.lang.String getName()
          Returns the name.
 BundleDescription getSupplier()
          Returns the bundle which supplies this base description
 Version getVersion()
          Returns the version.
 boolean isRoot()
          Returns true if the export package is a root package; false otherwise.
protected  void setAttributes(java.util.Map attributes)
           
 java.lang.Object setDirective(java.lang.String key, java.lang.Object value)
           
 void setDirectives(java.util.Map directives)
           
protected  void setExporter(BundleDescription exporter)
           
protected  void setName(java.lang.String name)
           
protected  void setVersion(Version version)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.osgi.service.resolver.BaseDescription
getName, getVersion
 

Field Detail

EQUINOX_EE

public static final java.lang.String EQUINOX_EE
See Also:
Constant Field Values

monitor

protected final java.lang.Object monitor
Constructor Detail

ExportPackageDescriptionImpl

public ExportPackageDescriptionImpl()
Method Detail

getDirectives

public java.util.Map getDirectives()
Description copied from interface: ExportPackageDescription
Returns the directives for this package.

Specified by:
getDirectives in interface ExportPackageDescription
Returns:
the directives for this package

getDirective

public java.lang.Object getDirective(java.lang.String key)
Description copied from interface: ExportPackageDescription
Returns the specified directive for this package.

Specified by:
getDirective in interface ExportPackageDescription
Parameters:
key - the directive to fetch
Returns:
the specified directive for this package

setDirective

public java.lang.Object setDirective(java.lang.String key,
                                     java.lang.Object value)

setDirectives

public void setDirectives(java.util.Map directives)

getAttributes

public java.util.Map getAttributes()
Description copied from interface: ExportPackageDescription
Returns the arbitrary attributes for this package.

Specified by:
getAttributes in interface ExportPackageDescription
Returns:
the arbitrary attributes for this package

getSupplier

public BundleDescription getSupplier()
Description copied from interface: BaseDescription
Returns the bundle which supplies this base description

Specified by:
getSupplier in interface BaseDescription
Returns:
the bundle which supplies this base description

getExporter

public BundleDescription getExporter()
Description copied from interface: ExportPackageDescription
Returns the exporter of this package.

Specified by:
getExporter in interface ExportPackageDescription
Returns:
the exporter of this package.

isRoot

public boolean isRoot()
Description copied from interface: ExportPackageDescription
Returns true if the export package is a root package; false otherwise. A ExportPackageDescription is not a root package the exporting bundle is re-exporting the package using the Reexport-Package header.

Specified by:
isRoot in interface ExportPackageDescription
Returns:
true if the export package is a root package; false otherwise

setAttributes

protected void setAttributes(java.util.Map attributes)

setExporter

protected void setExporter(BundleDescription exporter)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getName

public java.lang.String getName()
Description copied from interface: BaseDescription
Returns the name.

Specified by:
getName in interface BaseDescription
Returns:
the name

getVersion

public Version getVersion()
Description copied from interface: BaseDescription
Returns the version.

Specified by:
getVersion in interface BaseDescription
Returns:
the version

setName

protected void setName(java.lang.String name)

setVersion

protected void setVersion(Version version)


Copyright © 2007-2012 FuseSource, Corp.. All Rights Reserved.