package de.dhbw.humbuch.model.entity;

import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class Profile {

	public static final Set<Subject> E = EnumSet.of(Subject.ENGLISH);
	public static final Set<Subject> EL = EnumSet.of(Subject.ENGLISH, Subject.LATIN);
	public static final Set<Subject> EF = EnumSet.of(Subject.ENGLISH, Subject.FRENCH2);
	public static final Set<Subject> ELF = EnumSet.of(Subject.ENGLISH, Subject.LATIN, Subject.FRENCH3);
	public static final Set<Subject> NONE = EnumSet.noneOf(Subject.class);
	
	public static Map<String, Set<Subject>> getProfileMap() {
		HashMap<String, Set<Subject>> profileMap = new HashMap<String, Set<Subject>>();
		profileMap.put("E", E);
		profileMap.put("EL", EL);
		profileMap.put("EF", EF);
		profileMap.put("ELF", ELF);
		profileMap.put("KEINS", NONE);
		
		return profileMap;
	}
	
}

@@ -30,17 +30,19 @@
 .entity;
-%0A
+%0D%0A%0D
 %0Aimport 
@@ -59,16 +59,17 @@
 EnumSet;
+%0D
 %0Aimport 
@@ -82,24 +82,25 @@
 til.HashMap;
+%0D
 %0Aimport java
@@ -109,16 +109,17 @@
 til.Map;
+%0D
 %0Aimport 
@@ -132,17 +132,19 @@
 til.Set;
-%0A
+%0D%0A%0D
 %0Apublic 
@@ -158,17 +158,19 @@
 rofile %7B
-%0A
+%0D%0A%0D
 %0A%09public
@@ -228,16 +228,17 @@
 NGLISH);
+%0D
 %0A%09public
@@ -312,16 +312,17 @@
 .LATIN);
+%0D
 %0A%09public
@@ -398,16 +398,17 @@
 RENCH2);
+%0D
 %0A%09public
@@ -500,16 +500,17 @@
 RENCH3);
+%0D
 %0A%09public
@@ -573,18 +573,20 @@
 .class);
+%0D
 %0A%09
+%0D
 %0A%09public
@@ -636,16 +636,17 @@
 eMap() %7B
+%0D
 %0A%09%09HashM
@@ -719,16 +719,17 @@
 ect%3E%3E();
+%0D
 %0A%09%09profi
@@ -746,16 +746,17 @@
 %22E%22, E);
+%0D
 %0A%09%09profi
@@ -775,16 +775,17 @@
 L%22, EL);
+%0D
 %0A%09%09profi
@@ -804,16 +804,17 @@
 F%22, EF);
+%0D
 %0A%09%09profi
@@ -835,16 +835,17 @@
 %22, ELF);
+%0D
 %0A%09%09profi
@@ -869,19 +869,21 @@
 , NONE);
+%0D
 %0A%09%09
+%0D
 %0A%09%09retur
@@ -899,12 +899,16 @@
 Map;
+%0D
 %0A%09%7D
+%0D
 %0A%09
+%0D
 %0A%7D
+%0D
 %0A

version reverting of model.entity