blob: e6ea908f8d818fe59e66144f8893300e4b54d137 [file] [log] [blame]
Richard S. Halla2dc4512006-04-04 13:17:11 +00001/*
2 * $Header: /cvshome/build/org.osgi.service.obr/src/org/osgi/service/obr/Requirement.java,v 1.4 2006/03/16 14:56:17 hargrave Exp $
3 *
4 * Copyright (c) OSGi Alliance (2006). All Rights Reserved.
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18
19// This document is an experimental draft to enable interoperability
20// between bundle repositories. There is currently no commitment to
21// turn this draft into an official specification.
22package org.osgi.service.obr;
23
24/**
25 * A named requirement specifies the need for certain capabilities with the same
26 * name.
27 *
28 * @version $Revision: 1.4 $
29 */
30public interface Requirement
31{
32
33 /**
34 * Return the name of the requirement.
35 */
36 String getName();
37
38 /**
39 * Return the filter.
40 *
41 */
42 String getFilter();
43
44 boolean isMultiple();
45
46 boolean isOptional();
47
48 boolean isExtend();
49
50 String getComment();
51
52 boolean isSatisfied(Capability capability);
53}