/*
 * Copyright 2020 B2i Healthcare Pte Ltd, http://b2i.sg
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.b2international.snowowl.core.compare;

import static com.google.common.base.Preconditions.checkNotNull;

/**
 * @since 7.10
 */
public enum ConceptMapCompareChangeKind {
	PRESENT("Present in Base"),
	NOT_PRESENT("Not Present in Base"),
	
	DIFFERENT_TARGET_PRESENT("Different Target - Present in Base"),
	DIFFERENT_TARGET_NOT_PRESENT("Different Target - Not Present in Base"),
	
	DIFFERENT_STATUS_PRESENT("Different Status - Present in Base"),
	DIFFERENT_STATUS_NOT_PRESENT("Different Status - Not Present in Base"),
	
	DIFFERENT_MAP_ADVICE_PRESENT("Different Map Advice - Present in Base"),
	DIFFERENT_MAP_ADVICE_NOT_PRESENT("Different Map Advice - Not Present in Base"),
	
	DIFFERENT_MAP_GROUP_PRESENT("Different Map Group - Present in Base"),
	DIFFERENT_MAP_GROUP_NOT_PRESENT("Different Map Group - Not Present in Base"),
	
	DIFFERENT_MAPPING_CORRELATION_PRESENT("Different Mapping Correlation - Present in Base"),
	DIFFERENT_MAPPING_CORRELATION_NOT_PRESENT("Different Mapping Correlation - Not Present in Base"),
	
	DIFFERENT_MAP_PRIORITY_PRESENT("Different Map Priority - Present in Base"),
	DIFFERENT_MAP_PRIORITY_NOT_PRESENT("Different Map Priority - Not Present in Base"),
	
	DIFFERENT_MAP_RULE_PRESENT("Different Map Rule - Present in Base"),
	DIFFERENT_MAP_RULE_NOT_PRESENT("Different Map Rule - Not Present in Base"),
	
	UNCHANGED("Unchanged");
	
	private final String label;
	
	private ConceptMapCompareChangeKind(final String label) {
		this.label = checkNotNull(label, "label");
	}
	
	@Override
	public String toString() {
		return label;
	}
}

@@ -811,32 +811,24 @@
 ENT(%22Present
- in Base
 %22),%0A%09NOT_PRE
@@ -840,37 +840,28 @@
 %22Not Present
- in Base
 %22),%0A
-%09
 %0A%09DIFFERENT_
@@ -866,24 +866,16 @@
 T_TARGET
-_PRESENT
 (%22Differ
@@ -888,104 +888,12 @@
 rget
- - Present in Base%22),%0A%09DIFFERENT_TARGET_NOT_PRESENT(%22Different Target - Not Present in Base%22),%0A%09
+%22),%0A
 %0A%09DI
@@ -906,24 +906,16 @@
 T_STATUS
-_PRESENT
 (%22Differ
@@ -928,104 +928,12 @@
 atus
- - Present in Base%22),%0A%09DIFFERENT_STATUS_NOT_PRESENT(%22Different Status - Not Present in Base%22),%0A%09
+%22),%0A
 %0A%09DI
@@ -950,24 +950,16 @@
 P_ADVICE
-_PRESENT
 (%22Differ
@@ -972,34 +972,16 @@
 p Advice
- - Present in Base
 %22),%0A%09DIF
@@ -995,227 +995,37 @@
 MAP_
-ADVICE_NOT_PRESENT(%22Different Map Advice - Not Present in Base%22),%0A%09%0A%09DIFFERENT_MAP_GROUP_PRESENT(%22Different Map Group - Present in Base%22),%0A%09DIFFERENT_MAP_GROUP_NOT_PRESENT(%22Different Map Group - Not Present in Base%22),%0A%09
+GROUP(%22Different Map Group%22),
 %0A%09DI
@@ -1051,24 +1051,16 @@
 RELATION
-_PRESENT
 (%22Differ
@@ -1086,130 +1086,11 @@
 tion
- - Present in Base%22),%0A%09DIFFERENT_MAPPING_CORRELATION_NOT_PRESENT(%22Different Mapping Correlation - Not Present in Base%22),%0A%09
+%22),
 %0A%09DI
@@ -1109,24 +1109,16 @@
 PRIORITY
-_PRESENT
 (%22Differ
@@ -1133,34 +1133,16 @@
 Priority
- - Present in Base
 %22),%0A%09DIF
@@ -1156,227 +1156,36 @@
 MAP_
-PRIORITY_NOT_PRESENT(%22Different Map Priority - Not Present in Base%22),%0A%09%0A%09DIFFERENT_MAP_RULE_PRESENT(%22Different Map Rule - Present in Base%22),%0A%09DIFFERENT_MAP_RULE_NOT_PRESENT(%22Different Map Rule - Not Present in Base%22),%0A%09
+RULE(%22Different Map Rule%22),%0A
 %0A%09UN
@@ -1206,18 +1206,17 @@
 nged%22);%0A
-%09
 %0A
+
 %09private
@@ -1236,18 +1236,17 @@
  label;%0A
-%09
 %0A
+
 %09private
@@ -1344,17 +1344,16 @@
 l%22);%0A%09%7D%0A
-%09
 %0A%09@Overr

simplify enum