org.eclipse.osgi.internal.resolver
Class ExportPackageDescriptionImpl

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

public class ExportPackageDescriptionImpl
extends BaseDescriptionImpl
implements ExportPackageDescription


Field Summary
static java.lang.String EQUINOX_EE
           
 
Fields inherited from class org.eclipse.osgi.internal.resolver.BaseDescriptionImpl
monitor
 
Constructor Summary
ExportPackageDescriptionImpl()
           
ExportPackageDescriptionImpl(BundleDescription host, ExportPackageDescription fragmentDeclaration)
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.Object> getAttributes()
          Returns the arbitrary attributes for this package.
 java.util.Map<java.lang.String,java.lang.Object> getDeclaredAttributes()
          Returns the attributes declared with the description.
 java.util.Map<java.lang.String,java.lang.String> getDeclaredDirectives()
          Returns the directives declared with the description.
 java.lang.Object getDirective(java.lang.String key)
          Returns the specified directive for this package.
 java.util.Map<java.lang.String,java.lang.Object> getDirectives()
          Returns the directives for this package.
 BundleDescription getExporter()
          Returns the exporter of this package.
 BaseDescription getFragmentDeclaration()
           
 BundleDescription getSupplier()
          Returns the bundle which supplies this base description
 boolean isRoot()
          Deprecated.  
protected  void setAttributes(java.util.Map<java.lang.String,?> attributes)
           
 java.lang.Object setDirective(java.lang.String key, java.lang.Object value)
           
 void setDirectives(java.util.Map<java.lang.String,?> directives)
           
protected  void setExporter(BundleDescription exporter)
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.osgi.internal.resolver.BaseDescriptionImpl
getCapability, getName, getVersion, setName, setVersion
 
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
getCapability, getName, getVersion
 

Field Detail

EQUINOX_EE

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

ExportPackageDescriptionImpl

public ExportPackageDescriptionImpl()

ExportPackageDescriptionImpl

public ExportPackageDescriptionImpl(BundleDescription host,
                                    ExportPackageDescription fragmentDeclaration)
Method Detail

getDirectives

public java.util.Map<java.lang.String,java.lang.Object> getDirectives()
Description copied from interface: ExportPackageDescription
Returns the directives for this package.

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

getDeclaredDirectives

public java.util.Map<java.lang.String,java.lang.String> getDeclaredDirectives()
Description copied from interface: BaseDescription
Returns the directives declared with the description. This will return all known directives for the type of description. The set of directives differs for each description type.

Specified by:
getDeclaredDirectives in interface BaseDescription
Returns:
the known directives declared with the description

getDeclaredAttributes

public java.util.Map<java.lang.String,java.lang.Object> getDeclaredAttributes()
Description copied from interface: BaseDescription
Returns the attributes declared with the description. This will return all known attributes for the type of description. The set of attributes differs for each description type.

Specified by:
getDeclaredAttributes in interface BaseDescription
Returns:
the attributes declared with the description

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<java.lang.String,?> directives)

getAttributes

public java.util.Map<java.lang.String,java.lang.Object> 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()
Deprecated. 

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<java.lang.String,?> attributes)

setExporter

protected void setExporter(BundleDescription exporter)

getFragmentDeclaration

public BaseDescription getFragmentDeclaration()
Overrides:
getFragmentDeclaration in class BaseDescriptionImpl

toString

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


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