Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.operations/src/org/eclipse/equinox/p2/operations/RemedyIUDetail.java')
-rw-r--r--bundles/org.eclipse.equinox.p2.operations/src/org/eclipse/equinox/p2/operations/RemedyIUDetail.java68
1 files changed, 68 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.operations/src/org/eclipse/equinox/p2/operations/RemedyIUDetail.java b/bundles/org.eclipse.equinox.p2.operations/src/org/eclipse/equinox/p2/operations/RemedyIUDetail.java
new file mode 100644
index 000000000..1d060a528
--- /dev/null
+++ b/bundles/org.eclipse.equinox.p2.operations/src/org/eclipse/equinox/p2/operations/RemedyIUDetail.java
@@ -0,0 +1,68 @@
+/*******************************************************************************
+ * Copyright (c) 2013 Red Hat, Inc. and others
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.equinox.p2.operations;
+
+import org.eclipse.equinox.p2.metadata.IInstallableUnit;
+import org.eclipse.equinox.p2.metadata.Version;
+
+public class RemedyIUDetail {
+
+ public static final int STATUS_ADDED = 1;
+ public static final int STATUS_REMOVED = 2;
+ public static final int STATUS_NOT_ADDED = 3;
+ public static final int STATUS_CHANGED = 4;
+
+ private int status;
+ private Version installedVersion;
+ private Version requestedVersion;
+ private Version beingInstalledVersion;
+ private IInstallableUnit iu;
+
+ public RemedyIUDetail(IInstallableUnit iu) {
+ this.iu = iu;
+ }
+
+ public void setStatus(int status) {
+ this.status = status;
+ }
+
+ public int getStatus() {
+ return status;
+ }
+
+ public Version getRequestedVersion() {
+ return requestedVersion;
+ }
+
+ public void setRequestedVersion(Version requestedVersion) {
+ this.requestedVersion = requestedVersion;
+ }
+
+ public Version getBeingInstalledVersion() {
+ return beingInstalledVersion;
+ }
+
+ public void setBeingInstalledVersion(Version beingInstalledVersion) {
+ this.beingInstalledVersion = beingInstalledVersion;
+ }
+
+ public IInstallableUnit getIu() {
+ return iu;
+ }
+
+ public Version getInstalledVersion() {
+ return installedVersion;
+ }
+
+ public void setInstalledVersion(Version installedVersion) {
+ this.installedVersion = installedVersion;
+ }
+}

Back to the top