KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > osgi > service > resolver > ExportPackageDescription


1 /*******************************************************************************
2  * Copyright (c) 2003, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.osgi.service.resolver;
12
13 import java.util.Map JavaDoc;
14
15 /**
16  * This class represents a specific version of an exported package in the system.
17  * <p>
18  * Clients may implement this interface.
19  * </p>
20  * @since 3.1
21  */

22 public interface ExportPackageDescription extends BaseDescription {
23
24     /**
25      * Returns true if the export package is a root package; false otherwise.
26      * A ExportPackageDescription is not a root package the exporting bundle
27      * is re-exporting the package using the Reexport-Package header.
28      * @return true if the export package is a root package; false otherwise
29      */

30     public boolean isRoot();
31
32     /**
33      * Returns the arbitrary attributes for this package.
34      * @return the arbitrary attributes for this package
35      */

36     public Map JavaDoc getAttributes();
37
38     /**
39      * Returns the directives for this package.
40      * @return the directives for this package
41      */

42     public Map JavaDoc getDirectives();
43
44     /**
45      * Returns the specified directive for this package.
46      * @param key the directive to fetch
47      * @return the specified directive for this package
48      */

49     public Object JavaDoc getDirective(String JavaDoc key);
50
51     /**
52      * Returns the exporter of this package.
53      * @return the exporter of this package.
54      */

55     public BundleDescription getExporter();
56 }
57
Popular Tags