Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/health/change/AttributeChangeReportComparer.java')
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/health/change/AttributeChangeReportComparer.java114
1 files changed, 57 insertions, 57 deletions
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/health/change/AttributeChangeReportComparer.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/health/change/AttributeChangeReportComparer.java
index db045871d24..7706d2525d4 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/health/change/AttributeChangeReportComparer.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/health/change/AttributeChangeReportComparer.java
@@ -1,57 +1,57 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * 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:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ats.health.change;
-
-/**
- * @author Jeff C. Phillips
- */
-public class AttributeChangeReportComparer extends DataChangeReportComparer {
- private static String ATTR_START_TAG = "<attrId>";
- private static String ATTR_END_TAG = "</attrId>";
- private int artId;
- private int attrId;
-
- public AttributeChangeReportComparer(String content) {
- super(content);
- }
-
- @Override
- public void processContent(String content) {
- artId =
- Integer.parseInt(content.substring(
- content.indexOf(ArtifactChangeReportComparer.ART_START_TAG) + ArtifactChangeReportComparer.ART_START_TAG.length(),
- content.indexOf(ArtifactChangeReportComparer.ART_END_TAG)));
-
- attrId =
- Integer.parseInt(content.substring(content.indexOf(ATTR_START_TAG) + ATTR_START_TAG.length(),
- content.indexOf(ATTR_END_TAG)));
- }
-
- @Override
- public int compareTo(Object obj) {
- int compareResults = -1;
-
- if (obj instanceof AttributeChangeReportComparer) {
- AttributeChangeReportComparer comparer = (AttributeChangeReportComparer) obj;
-
- if (this.artId == comparer.artId) {
- if (this.attrId == comparer.attrId) {
- compareResults = 0;
- } else if (this.attrId > comparer.attrId) {
- compareResults = 1;
- }
- } else if (this.artId > comparer.artId) {
- compareResults = 1;
- }
- }
- return compareResults;
- }
-}
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * 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:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.ats.health.change;
+
+/**
+ * @author Jeff C. Phillips
+ */
+public class AttributeChangeReportComparer extends DataChangeReportComparer {
+ private static String ATTR_START_TAG = "<attrId>";
+ private static String ATTR_END_TAG = "</attrId>";
+ private int artId;
+ private int attrId;
+
+ public AttributeChangeReportComparer(String content) {
+ super(content);
+ }
+
+ @Override
+ public void processContent(String content) {
+ artId =
+ Integer.parseInt(content.substring(
+ content.indexOf(ArtifactChangeReportComparer.ART_START_TAG) + ArtifactChangeReportComparer.ART_START_TAG.length(),
+ content.indexOf(ArtifactChangeReportComparer.ART_END_TAG)));
+
+ attrId =
+ Integer.parseInt(content.substring(content.indexOf(ATTR_START_TAG) + ATTR_START_TAG.length(),
+ content.indexOf(ATTR_END_TAG)));
+ }
+
+ @Override
+ public int compareTo(Object obj) {
+ int compareResults = -1;
+
+ if (obj instanceof AttributeChangeReportComparer) {
+ AttributeChangeReportComparer comparer = (AttributeChangeReportComparer) obj;
+
+ if (this.artId == comparer.artId) {
+ if (this.attrId == comparer.attrId) {
+ compareResults = 0;
+ } else if (this.attrId > comparer.attrId) {
+ compareResults = 1;
+ }
+ } else if (this.artId > comparer.artId) {
+ compareResults = 1;
+ }
+ }
+ return compareResults;
+ }
+}

Back to the top