| 1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2013 Red Hat, Inc. and others |
| 3 |
* |
| 4 |
* This program and the accompanying materials |
| 5 |
* are made available under the terms of the Eclipse Public License 2.0 |
| 6 |
* which accompanies this distribution, and is available at |
| 7 |
* https://www.eclipse.org/legal/epl-2.0/ |
| 8 |
* |
| 9 |
* SPDX-License-Identifier: EPL-2.0 |
| 10 |
* |
| 11 |
* Contributors: |
| 12 |
* Red Hat, Inc. - initial API and implementation |
| 13 |
*******************************************************************************/ |
| 14 |
package org.eclipse.equinox.p2.operations; |
| 15 |
|
| 16 |
import org.eclipse.equinox.p2.metadata.IInstallableUnit; |
| 17 |
|
| 18 |
import org.eclipse.equinox.p2.metadata.Version; |
| 19 |
/** |
| 20 |
* <p> |
| 21 |
* <strong>EXPERIMENTAL</strong>. This class or interface has been added as |
| 22 |
* part of a work in progress. There is no guarantee that this API will |
| 23 |
* work or that it will remain the same. Please do not use this API without |
| 24 |
* consulting with the p2 team. |
| 25 |
* </p> |
| 26 |
* @since 2.3 |
| 27 |
* @noreference |
| 28 |
*/ |
| 29 |
public class RemedyIUDetail { |
| 30 |
|
| 31 |
public static final int STATUS_ADDED = 1; |
| 32 |
public static final int STATUS_REMOVED = 2; |
| 33 |
public static final int STATUS_NOT_ADDED = 3; |
| 34 |
public static final int STATUS_CHANGED = 4; |
| 35 |
|
| 36 |
private int status; |
| 37 |
private Version installedVersion; |
| 38 |
private Version requestedVersion; |
| 39 |
private Version beingInstalledVersion; |
| 40 |
private IInstallableUnit iu; |
| 41 |
|
| 42 |
public RemedyIUDetail(IInstallableUnit iu) { |
| 43 |
this.iu = iu; |
| 44 |
} |
| 45 |
|
| 46 |
public void setStatus(int status) { |
| 47 |
this.status = status; |
| 48 |
} |
| 49 |
|
| 50 |
public int getStatus() { |
| 51 |
return status; |
| 52 |
} |
| 53 |
|
| 54 |
public Version getRequestedVersion() { |
| 55 |
return requestedVersion; |
| 56 |
} |
| 57 |
|
| 58 |
public void setRequestedVersion(Version requestedVersion) { |
| 59 |
this.requestedVersion = requestedVersion; |
| 60 |
} |
| 61 |
|
| 62 |
public Version getBeingInstalledVersion() { |
| 63 |
return beingInstalledVersion; |
| 64 |
} |
| 65 |
|
| 66 |
public void setBeingInstalledVersion(Version beingInstalledVersion) { |
| 67 |
this.beingInstalledVersion = beingInstalledVersion; |
| 68 |
} |
| 69 |
|
| 70 |
public IInstallableUnit getIu() { |
| 71 |
return iu; |
| 72 |
} |
| 73 |
|
| 74 |
public Version getInstalledVersion() { |
| 75 |
return installedVersion; |
| 76 |
} |
| 77 |
|
| 78 |
public void setInstalledVersion(Version installedVersion) { |
| 79 |
this.installedVersion = installedVersion; |
| 80 |
} |
| 81 |
} |