KickJava   Java API By Example, From Geeks To Geeks.

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


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  * A representation of one package import constraint as seen in a
17  * bundle manifest and managed by a state and resolver.
18  * <p>
19  * Clients may implement this interface.
20  * </p>
21  * @since 3.1
22  */

23 public interface ImportPackageSpecification extends VersionConstraint {
24     /**
25      * The static resolution directive value.
26      */

27     public static final String JavaDoc RESOLUTION_STATIC = "static"; //$NON-NLS-1$
28
/**
29      * The optional resolution directive value.
30      */

31     public static final String JavaDoc RESOLUTION_OPTIONAL = "optional"; //$NON-NLS-1$
32
/**
33      * The dynamic resolution directive value.
34      */

35     public static final String JavaDoc RESOLUTION_DYNAMIC = "dynamic"; //$NON-NLS-1$
36

37     /**
38      * Returns the symbolic name of the bundle this import package must be resolved to.
39      * @return the symbolic name of the bundle this import pacakge must be resolved to.
40      * A value of <code>null</code> indicates any symbolic name.
41      */

42     public String JavaDoc getBundleSymbolicName();
43
44     /**
45      * Returns the version range which this import package may be resolved to.
46      * @return the version range which this import package may be resolved to.
47      */

48     public VersionRange getBundleVersionRange();
49
50     /**
51      * Returns the arbitrary attributes which this import package may be resolved to.
52      * @return the arbitrary attributes which this import package may be resolved to.
53      */

54     public Map JavaDoc getAttributes();
55
56     /**
57      * Returns the directives that control this import package.
58      * @return the directives that control this import package.
59      */

60     public Map JavaDoc getDirectives();
61
62     /**
63      * Returns the specified directive that control this import package.
64      * @return the specified directive that control this import package.
65      */

66     public Object JavaDoc getDirective(String JavaDoc key);
67 }
68
Popular Tags