Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/merge/MatchItem.java')
-rw-r--r--plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/merge/MatchItem.java118
1 files changed, 59 insertions, 59 deletions
diff --git a/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/merge/MatchItem.java b/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/merge/MatchItem.java
index 6759fd00fce..a9ebbeaadd8 100644
--- a/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/merge/MatchItem.java
+++ b/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/merge/MatchItem.java
@@ -8,64 +8,64 @@
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
-package org.eclipse.osee.coverage.merge;
-
+package org.eclipse.osee.coverage.merge;
+
import java.util.Collection;
import org.eclipse.osee.coverage.model.ICoverage;
-
-/**
- * @author Donald G. Dunne
- */
-public class MatchItem {
-
- private final MatchType matchType;
- private final ICoverage packageItem;
- private final ICoverage importItem;
- public static MatchItem No_Match_Item = new MatchItem(MatchType.No_Match__Name_Or_Order_Num, null, null);
-
- public MatchItem(MatchType matchType, ICoverage packageItem, ICoverage importItem) {
- this.matchType = matchType;
- this.packageItem = packageItem;
- this.importItem = importItem;
- }
-
- public MatchType getMatchType() {
- return matchType;
- }
-
- public ICoverage getPackageItem() {
- return packageItem;
- }
-
- public ICoverage getImportItem() {
- return importItem;
- }
-
- @Override
- public String toString() {
- return "Match Type>> " + matchType.toString() + " - Import Item>>" + importItem.toString() + ") - Package Item>>(" + (packageItem != null ? packageItem.toString() : "[null])");
- }
-
- public static boolean isAllMatchType(Collection<MatchType> matchTypes, Collection<MatchItem> matchItems) {
- for (MatchItem matchItem : matchItems) {
- if (!matchTypes.contains(matchItem.getMatchType())) {
- return false;
- }
- }
- return true;
- }
-
- public boolean isMatch() {
- if (matchType.toString().startsWith("Match__")) {
- return true;
- }
- return false;
- }
-
- public boolean isMatchType(Collection<MatchType> matchTypes) {
- if (!matchTypes.contains(matchType)) {
- return false;
- }
- return true;
- }
-}
+
+/**
+ * @author Donald G. Dunne
+ */
+public class MatchItem {
+
+ private final MatchType matchType;
+ private final ICoverage packageItem;
+ private final ICoverage importItem;
+ public static MatchItem No_Match_Item = new MatchItem(MatchType.No_Match__Name_Or_Order_Num, null, null);
+
+ public MatchItem(MatchType matchType, ICoverage packageItem, ICoverage importItem) {
+ this.matchType = matchType;
+ this.packageItem = packageItem;
+ this.importItem = importItem;
+ }
+
+ public MatchType getMatchType() {
+ return matchType;
+ }
+
+ public ICoverage getPackageItem() {
+ return packageItem;
+ }
+
+ public ICoverage getImportItem() {
+ return importItem;
+ }
+
+ @Override
+ public String toString() {
+ return "Match Type>> " + matchType.toString() + " - Import Item>>" + importItem.toString() + ") - Package Item>>(" + (packageItem != null ? packageItem.toString() : "[null])");
+ }
+
+ public static boolean isAllMatchType(Collection<MatchType> matchTypes, Collection<MatchItem> matchItems) {
+ for (MatchItem matchItem : matchItems) {
+ if (!matchTypes.contains(matchItem.getMatchType())) {
+ return false;
+ }
+ }
+ return true;
+ }
+
+ public boolean isMatch() {
+ if (matchType.toString().startsWith("Match__")) {
+ return true;
+ }
+ return false;
+ }
+
+ public boolean isMatchType(Collection<MatchType> matchTypes) {
+ if (!matchTypes.contains(matchType)) {
+ return false;
+ }
+ return true;
+ }
+}

Back to the top