Subversion Repositories eFlore/Applications.cel

Rev

Rev 2392 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2392 Rev 2755
Line 11... Line 11...
11
import com.google.gwt.json.client.JSONValue;
11
import com.google.gwt.json.client.JSONValue;
Line 12... Line 12...
12
 
12
 
Line 13... Line 13...
13
public class ListeGroupesChampsEtendus extends HashMap<String,HashMap<String, String>> {
13
public class ListeGroupesChampsEtendus extends HashMap<String,HashMap<String, String>> {
-
 
14
	
Line 14... Line 15...
14
	
15
	public HashMap<String, String> correspondancesClesLabels ;
15
	public HashMap<String, String> correspondancesClesLabels ;
16
	public HashMap<String, String> correspondancesCorrespondancesIdsNomsGroupes;
16
	
17
	
17
	public ListeGroupesChampsEtendus(String groupeChampsEtendusJson) {
18
	public ListeGroupesChampsEtendus(String groupeChampsEtendusJson) {
-
 
19
		super();
18
		super();
20
		try {
19
		try {
21
			correspondancesClesLabels = new HashMap<String, String>();
Line 20... Line 22...
20
			correspondancesClesLabels = new HashMap<String, String>();
22
			correspondancesCorrespondancesIdsNomsGroupes = new HashMap<String, String>();
Line 21... Line 23...
21
			JSONValue groupesJson = JSONParser.parseStrict(groupeChampsEtendusJson);
23
			JSONValue groupesJson = JSONParser.parseStrict(groupeChampsEtendusJson);
-
 
24
			JSONArray groupes = groupesJson.isArray();
22
			JSONArray groupes = groupesJson.isArray();
25
			
23
			
26
			for (int i = 0; i < groupes.size(); i++) {
Line -... Line 27...
-
 
27
				
-
 
28
				JSONObject groupe = groupes.get(i).isObject();
24
			for (int i = 0; i < groupes.size(); i++) {
29
				String cleGroupe = groupe.get("cle").isString().stringValue();
Line 25... Line 30...
25
				
30
				String nomGroupe = groupe.get("nom").isString().stringValue();
26
				JSONObject groupe = groupes.get(i).isObject();
31
				JSONArray listeClesLabels = groupe.get("champs").isArray();
27
				String nomGroupe = groupe.get("nom").isString().stringValue();
32
				
Line 46... Line 51...
46
	
51
	
47
	public HashMap<String, String> getCorrespondancesClesLabel() {
52
	public HashMap<String, String> getCorrespondancesClesLabel() {
48
		return correspondancesClesLabels;
53
		return correspondancesClesLabels;
Line -... Line 54...
-
 
54
	}
-
 
55
	
-
 
56
	public HashMap<String, String> getCorrespondancesCorrespondancesIdsNomsGroupes() {
49
	}
57
		return correspondancesCorrespondancesIdsNomsGroupes;