| 1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2008, 2010 Code 9 and others. |
| 3 |
* |
| 4 |
* This |
| 5 |
* program and the accompanying materials are made available under the terms of |
| 6 |
* the Eclipse Public License 2.0 which accompanies this distribution, and is |
| 7 |
* available at |
| 8 |
* https://www.eclipse.org/legal/epl-2.0/ |
| 9 |
* |
| 10 |
* SPDX-License-Identifier: EPL-2.0 |
| 11 |
* |
| 12 |
* Contributors: |
| 13 |
* Code 9 - initial API and implementation |
| 14 |
* IBM - ongoing development |
| 15 |
******************************************************************************/ |
| 16 |
package org.eclipse.equinox.p2.publisher.actions; |
| 17 |
|
| 18 |
import org.eclipse.equinox.p2.metadata.Version; |
| 19 |
import org.eclipse.equinox.p2.publisher.IPublisherAdvice; |
| 20 |
|
| 21 |
public interface IVersionAdvice extends IPublisherAdvice { |
| 22 |
|
| 23 |
public static final String NS_BUNDLE = "bundle"; //$NON-NLS-1$ |
| 24 |
public static final String NS_FEATURE = "feature"; //$NON-NLS-1$ |
| 25 |
public static final String NS_ROOT = "root"; //$NON-NLS-1$ |
| 26 |
|
| 27 |
/** |
| 28 |
* Returns the version advice for the given id in the given namespace. |
| 29 |
* @param namespace the namespace in which to look for advice |
| 30 |
* @param id the item for which advice is sought |
| 31 |
* @return the version advice found or <code>null</code> if none |
| 32 |
*/ |
| 33 |
public Version getVersion(String namespace, String id); |
| 34 |
|
| 35 |
} |