Subversion Repositories eFlore/Applications.coel

Rev

Rev 1173 | Rev 1284 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1173 Rev 1193
1
package org.tela_botanica.client.modeles.structure;
1
package org.tela_botanica.client.modeles.structure;
2
 
2
 
3
import java.util.Date;
3
import java.util.Date;
4
import java.util.Iterator;
4
import java.util.Iterator;
5
import java.util.Set;
5
import java.util.Set;
6
 
6
 
7
import org.tela_botanica.client.modeles.aDonnee;
7
import org.tela_botanica.client.modeles.aDonnee;
8
import org.tela_botanica.client.modeles.personne.Personne;
8
import org.tela_botanica.client.modeles.personne.Personne;
9
 
9
 
10
import com.extjs.gxt.ui.client.data.BaseModelData;
10
import com.extjs.gxt.ui.client.data.BaseModelData;
11
import com.google.gwt.i18n.client.DateTimeFormat;
11
import com.google.gwt.i18n.client.DateTimeFormat;
12
import com.google.gwt.json.client.JSONObject;
12
import com.google.gwt.json.client.JSONObject;
13
 
13
 
14
public class Structure extends aDonnee {
14
public class Structure extends aDonnee {
15
	
15
	
16
	private static final long serialVersionUID = -5623886668593288218L;
16
	private static final long serialVersionUID = -5623886668593288218L;
17
 
17
 
18
	public static final String PREFIXE = "cs";
18
	public static final String PREFIXE = "cs";
19
	public static final String URL_SITE = "WEB";
19
	public static final String URL_SITE = "WEB";
20
	public static final String URL_LOGO = "LOGO";
20
	public static final String URL_LOGO = "LOGO";
21
	
21
	
22
	private BaseModelData urls = null;
22
	private BaseModelData urls = null;
23
	private StructureAPersonneListe personnel = null;
23
	private StructureAPersonneListe personnel = null;
24
	private StructureValorisation valorisation = null;
24
	private StructureValorisation valorisation = null;
25
	private StructureConservation conservation = null;
25
	private StructureConservation conservation = null;
26
	public static String[] champsObligatoires = {"cs_id_structure", "csc_id_structure", "csv_id_structure"};
26
	public static String[] champsObligatoires = {"cs_id_structure", "csc_id_structure", "csv_id_structure"};
27
	
27
	
28
	public Structure() {
28
	public Structure() {
29
		// Constructions du tableau des urls interne
29
		// Constructions du tableau des urls interne
30
		urls = new BaseModelData();
30
		urls = new BaseModelData();
31
	}
31
	}
32
	
32
	
33
	public Structure(JSONObject institution) {
33
	public Structure(JSONObject institution) {
34
		// Constructions du tableau des urls interne
34
		// Constructions du tableau des urls interne
35
		urls = new BaseModelData();
35
		urls = new BaseModelData();
36
 
36
 
37
		// l'objet JSON est une table de hachage
37
		// l'objet JSON est une table de hachage
38
		Set<String> im = institution.keySet();
38
		Set<String> im = institution.keySet();
39
 
39
 
40
		// Parcourt pour chaque clé
40
		// Parcourt pour chaque clé
41
		for (Iterator<String> it = im.iterator(); it.hasNext();) {
41
		for (Iterator<String> it = im.iterator(); it.hasNext();) {
42
			// Si elle est associée à une valeur, nous l'ajoutons
42
			// Si elle est associée à une valeur, nous l'ajoutons
43
			String cle = it.next();
43
			String cle = it.next();
44
			if (cle.startsWith(PREFIXE+"_")) {
44
			if (cle.startsWith(PREFIXE+"_")) {
45
				// Suppression de l'abréviation du champ. Inutile dans le contexte d'un objet
45
				// Suppression de l'abréviation du champ. Inutile dans le contexte d'un objet
46
				String cleObjet = cle.replaceFirst("^"+PREFIXE+"_", "");
46
				String cleObjet = cle.replaceFirst("^"+PREFIXE+"_", "");
47
				// Sinon, nous ajoutons la clé avec une valeur vide
47
				// Sinon, nous ajoutons la clé avec une valeur vide
48
				String valeur = "";
48
				String valeur = "";
49
				if (institution.get(cle).isString() != null) {
49
				if (institution.get(cle).isString() != null) {
50
					valeur = institution.get(cle).isString().stringValue();
50
					valeur = institution.get(cle).isString().stringValue();
51
				}
51
				}
52
				if (cleObjet.equals("truk_url")) {
52
				if (cleObjet.equals("truk_url")) {
53
					this.setUrl(valeur);
53
					this.setUrl(valeur);
54
				} else {
54
				} else {
55
					this.set(cleObjet, valeur);
55
					this.set(cleObjet, valeur);
56
				}
56
				}
57
			}
57
			}
58
		}
58
		}
59
	}
59
	}
60
	
60
	
61
	@Override
61
	@Override
62
	protected String getPrefixe() {
62
	protected String getPrefixe() {
63
		return PREFIXE;
63
		return PREFIXE;
64
	}
64
	}
65
	
65
	
66
	protected String[] getChampsObligatoires()	{
66
	protected String[] getChampsObligatoires()	{
67
		return champsObligatoires;
67
		return champsObligatoires;
68
	}
68
	}
69
	
69
	
70
	public String getId() {
70
	public String getId() {
71
		return renvoyerValeurCorrecte("id_structure");
71
		return renvoyerValeurCorrecte("id_structure");
72
	}
72
	}
73
	public void setId(String idStructure) {
73
	public void setId(String idStructure) {
74
		this.set("id_structure", idStructure);
74
		this.set("id_structure", idStructure);
75
	}
75
	}
76
	
76
	
77
	public String getIdProjet() {
77
	public String getIdProjet() {
78
		return renvoyerValeurCorrecte("ce_projet");
78
		return renvoyerValeurCorrecte("ce_projet");
79
	}
79
	}
80
	public void setIdProjet(String idProjet) {
80
	public void setIdProjet(String idProjet) {
81
		this.set("ce_projet", idProjet);
81
		this.set("ce_projet", idProjet);
82
	}
82
	}
83
	
83
	
84
	public String getIdMere() {
84
	public String getIdMere() {
85
		return renvoyerValeurCorrecte("ce_mere");
85
		return renvoyerValeurCorrecte("ce_mere");
86
	}
86
	}
87
	public void setIdMere(String idMere) {
87
	public void setIdMere(String idMere) {
88
		this.set("ce_mere", idMere);
88
		this.set("ce_mere", idMere);
89
	}
89
	}
90
	
90
	
91
	public String getGuid() {
91
	public String getGuid() {
92
		return renvoyerValeurCorrecte("guid");
92
		return renvoyerValeurCorrecte("guid");
93
	}
93
	}
94
	public void setGuid(String guid) {
94
	public void setGuid(String guid) {
95
		this.set("guid", guid);
95
		this.set("guid", guid);
96
	}
96
	}
97
	
97
	
98
	public String getIdAlternatif() {
98
	public String getIdAlternatif() {
99
		return renvoyerValeurCorrecte("truk_identifiant_alternatif");
99
		return renvoyerValeurCorrecte("truk_identifiant_alternatif");
100
	}
100
	}
101
	public void setIdAlternatif(String idAlter) {
101
	public void setIdAlternatif(String idAlter) {
102
		this.set("truk_identifiant_alternatif", idAlter);
102
		this.set("truk_identifiant_alternatif", idAlter);
103
	}
103
	}
104
	
104
	
105
	public String getNom() {
105
	public String getNom() {
106
		return renvoyerValeurCorrecte("nom");
106
		return renvoyerValeurCorrecte("nom");
107
	}
107
	}
108
	public void setNom(String nom) {
108
	public void setNom(String nom) {
109
		this.set("nom", nom);
109
		this.set("nom", nom);
110
	}
110
	}
111
	
111
	
112
	public String getNomAlternatif() {
112
	public String getNomAlternatif() {
113
		return renvoyerValeurCorrecte("truk_nom_alternatif");
113
		return renvoyerValeurCorrecte("truk_nom_alternatif");
114
	}
114
	}
115
	
115
	
116
	public String getDescription() {
116
	public String getDescription() {
117
		return renvoyerValeurCorrecte("description");
117
		return renvoyerValeurCorrecte("description");
118
	}
118
	}
119
	public void setDescription(String description) {
119
	public void setDescription(String description) {
120
		this.set("description", description);
120
		this.set("description", description);
121
	}
121
	}
122
	
122
	
123
	public String getType() {
123
	public String getType() {
124
		return renvoyerValeurCorrecte("ce_type");
124
		return renvoyerValeurCorrecte("ce_type");
125
	}
125
	}
126
	public void setType(String type) {
126
	public void setType(String type) {
127
		this.set("ce_type", type);
127
		this.set("ce_type", type);
128
	}
128
	}
129
	
129
	
130
	public String getTypePrive() {
130
	public String getTypePrive() {
131
		return renvoyerValeurCorrecte("ce_truk_type_prive");
131
		return renvoyerValeurCorrecte("ce_truk_type_prive");
132
	}
132
	}
133
	public void setTypePrive(String typePrive) {
133
	public void setTypePrive(String typePrive) {
134
		this.set("ce_truk_type_prive", typePrive);
134
		this.set("ce_truk_type_prive", typePrive);
135
	}
135
	}
136
	
136
	
137
	public String getTypePublic() {
137
	public String getTypePublic() {
138
		return renvoyerValeurCorrecte("ce_truk_type_public");
138
		return renvoyerValeurCorrecte("ce_truk_type_public");
139
	}
139
	}
140
	public void setTypePublic(String typePublic) {
140
	public void setTypePublic(String typePublic) {
141
		this.set("ce_truk_type_public", typePublic);
141
		this.set("ce_truk_type_public", typePublic);
142
	}
142
	}
143
	
143
	
144
	public String getAdresse() {
144
	public String getAdresse() {
145
		return (String) renvoyerValeurCorrecte("adresse_01");
145
		return (String) renvoyerValeurCorrecte("adresse_01");
146
	}
146
	}
147
	public void setAdresse(String adr) {
147
	public void setAdresse(String adr) {
148
		this.set("adresse_01", adr);
148
		this.set("adresse_01", adr);
149
	}
149
	}
150
	
150
	
151
	public String getAdresseComplement() {
151
	public String getAdresseComplement() {
152
		return renvoyerValeurCorrecte("adresse_02");
152
		return renvoyerValeurCorrecte("adresse_02");
153
	}
153
	}
154
	public void setAdresseComplement(String adr) {
154
	public void setAdresseComplement(String adr) {
155
		this.set("adresse_02", adr);
155
		this.set("adresse_02", adr);
156
	}
156
	}
157
 
157
 
158
	public String getDateFondationFormatMysql() {
158
	public String getDateFondationFormatMysql() {
159
		return renvoyerValeurCorrecte("date_fondation");
159
		return renvoyerValeurCorrecte("date_fondation");
160
	}
160
	}
161
	public String getDateFondationFormatLong() {
161
	public String getDateFondationFormatLong() {
162
		String dateFormatee = "";
162
		String dateFormatee = "";
163
		Date dateFondation = getDateFondation();
163
		Date dateFondation = getDateFondation();
164
		if (dateFondation != null) {
164
		if (dateFondation != null) {
165
			dateFormatee = DateTimeFormat.getLongDateFormat().format(dateFondation);
165
			dateFormatee = DateTimeFormat.getLongDateFormat().format(dateFondation);
166
		}
166
		}
167
		return dateFormatee;
167
		return dateFormatee;
168
	}
168
	}
169
	public Date getDateFondation() {
169
	public Date getDateFondation() {
170
		Date fondationDate = null;
170
		Date fondationDate = null;
171
		String fondationChaine = renvoyerValeurCorrecte("date_fondation");
171
		String fondationChaine = renvoyerValeurCorrecte("date_fondation");
172
		if (!fondationChaine.isEmpty() && !fondationChaine.equals("0000-00-00")) {
172
		if (!fondationChaine.isEmpty() && !fondationChaine.equals("0000-00-00")) {
173
			fondationDate = DateTimeFormat.getFormat("yyyy-MM-dd").parseStrict(fondationChaine);
173
			fondationDate = DateTimeFormat.getFormat("yyyy-MM-dd").parseStrict(fondationChaine);
174
		}
174
		}
175
		return fondationDate;
175
		return fondationDate;
176
	}
176
	}
177
	public void setDateFondation(Date dateFondation) {
177
	public void setDateFondation(Date dateFondation) {
178
		if (dateFondation != null) {
178
		if (dateFondation != null) {
179
			this.set("date_fondation", DateTimeFormat.getFormat("yyyy-MM-dd").format(dateFondation));
179
			this.set("date_fondation", DateTimeFormat.getFormat("yyyy-MM-dd").format(dateFondation));
180
		}
180
		}
181
	}
181
	}
182
	public void setDateFondation(String dateFondation) {
182
	public void setDateFondation(String dateFondation) {
183
		if (dateFondation != null) {
183
		if (dateFondation != null) {
184
			this.set("date_fondation", dateFondation);
184
			this.set("date_fondation", dateFondation);
185
		}
185
		}
186
	}
186
	}
187
		
187
		
188
	public String getCodePostal() {
188
	public String getCodePostal() {
189
		return renvoyerValeurCorrecte("code_postal");
189
		return renvoyerValeurCorrecte("code_postal");
190
	}
190
	}
191
	public void setCodePostal(String codePostal) {
191
	public void setCodePostal(String codePostal) {
192
		this.set("code_postal", codePostal);
192
		this.set("code_postal", codePostal);
193
	}
193
	}
194
	
194
	
195
	public String getVille() {
195
	public String getVille() {
196
		return renvoyerValeurCorrecte("ville");
196
		return renvoyerValeurCorrecte("ville");
197
	}
197
	}
198
	public void setVille(String ville) {
198
	public void setVille(String ville) {
199
		this.set("ville", ville);
199
		this.set("ville", ville);
200
	}
200
	}
201
	
201
	
202
	public String getRegion() {
202
	public String getRegion() {
203
		return getChaineDenormaliseUnique("ce_truk_region");
203
		return getChaineDenormaliseUnique("ce_truk_region");
204
	}
204
	}
205
	public void setRegion(String region) {
205
	public void setRegion(String region) {
206
		this.set("ce_truk_region", region);
206
		this.set("ce_truk_region", region);
207
	}
207
	}
208
	
208
	
209
	public String getPays() {
209
	public String getPays() {
210
		return getChaineDenormaliseUnique("ce_truk_pays");
210
		return getChaineDenormaliseUnique("ce_truk_pays");
211
	}
211
	}
212
	public void setPays(String pays) {
212
	public void setPays(String pays) {
213
		this.set("ce_truk_pays", pays);
213
		this.set("ce_truk_pays", pays);
214
	}
214
	}
215
	
215
	
216
	public String getLatitude() {
216
	public String getLatitude() {
217
		return renvoyerValeurCorrecte("latitude");
217
		return renvoyerValeurCorrecte("latitude");
218
	}
218
	}
219
	public void setLatitude(String latitude) {
219
	public void setLatitude(String latitude) {
-
 
220
		if (latitude != null)	{
220
		latitude = latitude.replace(".", ",");
221
			latitude = latitude.replace(".", ",");
-
 
222
		}
221
		this.set("latitude", latitude);
223
		this.set("latitude", latitude);
222
	}
224
	}
223
 
225
 
224
	public String getLongitude() {
226
	public String getLongitude() {
225
		return renvoyerValeurCorrecte("longitude");
227
		return renvoyerValeurCorrecte("longitude");
226
	}
228
	}
227
	public void setLongitude(String longitude) {
229
	public void setLongitude(String longitude) {
-
 
230
		if (longitude != null) {
228
		longitude = longitude.replace(".", ",");
231
			longitude = longitude.replace(".", ",");
-
 
232
		}
229
		this.set("longitude", longitude);
233
		this.set("longitude", longitude);
230
	}
234
	}
231
	
235
	
232
	// TELEPHONE
236
	// TELEPHONE
233
	public String getTelephone() {
237
	public String getTelephone() {
234
		return renvoyerValeurCorrecte("truk_telephone");
238
		return renvoyerValeurCorrecte("truk_telephone");
235
	}
239
	}
236
	public void setTelephone(String tel) {
240
	public void setTelephone(String tel) {
237
		this.set("truk_telephone", tel);
241
		this.set("truk_telephone", tel);
238
	}
242
	}
239
	
243
	
240
	// TELEPHONE FIXE
244
	// TELEPHONE FIXE
241
	public String getTelephoneFixe() {
245
	public String getTelephoneFixe() {
242
		return getInfoDenormaliseParType(renvoyerValeurCorrecte("truk_telephone"), Personne.TELEPHONE_FIXE);
246
		return getInfoDenormaliseParType(renvoyerValeurCorrecte("truk_telephone"), Personne.TELEPHONE_FIXE);
243
	}
247
	}
244
	public void setTelephoneFixe(String fixe) {
248
	public void setTelephoneFixe(String fixe) {
245
		modifierChaineDenormaliseParType("truk_telephone", Personne.TELEPHONE_FIXE, fixe);
249
		modifierChaineDenormaliseParType("truk_telephone", Personne.TELEPHONE_FIXE, fixe);
246
	}
250
	}
247
	
251
	
248
	//TELEPHONE FAX
252
	//TELEPHONE FAX
249
	public String getFax() {
253
	public String getFax() {
250
		return getInfoDenormaliseParType(renvoyerValeurCorrecte("truk_telephone"), Personne.TELEPHONE_FAX);
254
		return getInfoDenormaliseParType(renvoyerValeurCorrecte("truk_telephone"), Personne.TELEPHONE_FAX);
251
	}
255
	}
252
	public void setFax(String fax) {
256
	public void setFax(String fax) {
253
		modifierChaineDenormaliseParType("truk_telephone", Personne.TELEPHONE_FAX, fax);
257
		modifierChaineDenormaliseParType("truk_telephone", Personne.TELEPHONE_FAX, fax);
254
	}
258
	}
255
	
259
	
256
	// COURRIEL
260
	// COURRIEL
257
	public String getCourriel() {
261
	public String getCourriel() {
258
		return renvoyerValeurCorrecte("courriel");
262
		return renvoyerValeurCorrecte("courriel");
259
	}
263
	}
260
	public void setCourriel(String courriel) {
264
	public void setCourriel(String courriel) {
261
		this.set("courriel", courriel);
265
		this.set("courriel", courriel);
262
	}
266
	}
263
	
267
	
264
	// URL
268
	// URL
265
	public String getUrl(String type) {
269
	public String getUrl(String type) {
266
		return urls.get(type);
270
		return urls.get(type);
267
	}
271
	}
268
	public String getUrl() {
272
	public String getUrl() {
269
		String urlsDenormalise = "";
273
		String urlsDenormalise = "";
270
		Set<String> proprietes = urls.getProperties().keySet();
274
		Set<String> proprietes = urls.getProperties().keySet();
271
		for (Iterator<String> it = proprietes.iterator(); it.hasNext();) {
275
		for (Iterator<String> it = proprietes.iterator(); it.hasNext();) {
272
			String cle = it.next();
276
			String cle = it.next();
273
			urlsDenormalise += cle+"##"+urls.get(cle)+";;";
277
			urlsDenormalise += cle+"##"+urls.get(cle)+";;";
274
		}
278
		}
275
		urlsDenormalise.replaceFirst(";;$", "");
279
		urlsDenormalise.replaceFirst(";;$", "");
276
		return urlsDenormalise;
280
		return urlsDenormalise;
277
	}
281
	}
278
	public void setUrl(String urlsDenormalise) {
282
	public void setUrl(String urlsDenormalise) {
279
		if (urlsDenormalise != null && !urlsDenormalise.equals("")) {
283
		if (urlsDenormalise != null && !urlsDenormalise.equals("")) {
280
			//GWT.log(urlsDenormalise, null);
284
			//GWT.log(urlsDenormalise, null);
281
			String[] tableauUrls = urlsDenormalise.split(";;");
285
			String[] tableauUrls = urlsDenormalise.split(";;");
282
			for (int i = 0; i < tableauUrls.length; i++) {
286
			for (int i = 0; i < tableauUrls.length; i++) {
283
				String url = tableauUrls[i];
287
				String url = tableauUrls[i];
284
				//GWT.log("\t"+url, null);
288
				//GWT.log("\t"+url, null);
285
				String[] tableauUrl = url.split("##");
289
				String[] tableauUrl = url.split("##");
286
				if (tableauUrl.length == 2) {
290
				if (tableauUrl.length == 2) {
287
					//GWT.log("\t\t"+tableauUrl[0]+"-"+tableauUrl[1], null);
291
					//GWT.log("\t\t"+tableauUrl[0]+"-"+tableauUrl[1], null);
288
					urls.set(tableauUrl[0], tableauUrl[1]);
292
					urls.set(tableauUrl[0], tableauUrl[1]);
289
				}
293
				}
290
			}
294
			}
291
		}
295
		}
292
	}
296
	}
293
	public void setUrl(String type, String url) {
297
	public void setUrl(String type, String url) {
294
		if (url != null) {
298
		if (url != null) {
295
			urls.set(type, url);
299
			urls.set(type, url);
296
		}
300
		}
297
	}
301
	}
298
	
302
	
299
	public int getNbrePersonne() {
303
	public int getNbrePersonne() {
300
		if (renvoyerValeurCorrecte("nbre_personne").equals("")) {
304
		if (renvoyerValeurCorrecte("nbre_personne").equals("")) {
301
			return 0;
305
			return 0;
302
		} else {
306
		} else {
303
			return Integer.parseInt(renvoyerValeurCorrecte("nbre_personne"));
307
			return Integer.parseInt(renvoyerValeurCorrecte("nbre_personne"));
304
		}
308
		}
305
	}
309
	}
306
	public void setNbrePersonne(int nbrePersonne) {
310
	public void setNbrePersonne(int nbrePersonne) {
307
		this.set("nbre_personne", Integer.toString(nbrePersonne));
311
		this.set("nbre_personne", Integer.toString(nbrePersonne));
308
	}
312
	}
309
	
313
	
310
	public String getConditionAcces() {
314
	public String getConditionAcces() {
311
		return renvoyerValeurCorrecte("condition_acces");
315
		return renvoyerValeurCorrecte("condition_acces");
312
	}
316
	}
313
	public void setConditionAcces(String acces) {
317
	public void setConditionAcces(String acces) {
314
		this.set("condition_acces", acces);
318
		this.set("condition_acces", acces);
315
	}
319
	}
316
 
320
 
317
	public String getConditionUsage() {
321
	public String getConditionUsage() {
318
		return renvoyerValeurCorrecte("condition_usage");
322
		return renvoyerValeurCorrecte("condition_usage");
319
	}
323
	}
320
	public void setConditionUsage(String usage) {
324
	public void setConditionUsage(String usage) {
321
		this.set("condition_usage", usage);
325
		this.set("condition_usage", usage);
322
	}
326
	}
323
	
327
	
324
	public StructureAPersonneListe getPersonnel() {
328
	public StructureAPersonneListe getPersonnel() {
325
		return personnel;
329
		return personnel;
326
	}
330
	}
327
	public void setPersonnel(StructureAPersonneListe personnelAStocker) {
331
	public void setPersonnel(StructureAPersonneListe personnelAStocker) {
328
		personnel = personnelAStocker;
332
		personnel = personnelAStocker;
329
	}
333
	}
330
	
334
	
331
	public StructureValorisation getValorisation() {
335
	public StructureValorisation getValorisation() {
332
		return valorisation;
336
		return valorisation;
333
	}
337
	}
334
	public void setValorisation(StructureValorisation valorisationAStocker) {
338
	public void setValorisation(StructureValorisation valorisationAStocker) {
335
		valorisation = valorisationAStocker;
339
		valorisation = valorisationAStocker;
336
	}
340
	}
337
	
341
	
338
	public StructureConservation getConservation() {
342
	public StructureConservation getConservation() {
339
		return conservation;
343
		return conservation;
340
	}
344
	}
341
	public void setConservation(StructureConservation conservationAStocker) {
345
	public void setConservation(StructureConservation conservationAStocker) {
342
		conservation = conservationAStocker;
346
		conservation = conservationAStocker;
343
	}
347
	}
344
	
348
	
345
	public String toString() {
349
	public String toString() {
346
		String sortie = "";
350
		String sortie = "";
347
		
351
		
348
		// Champs du BaseModelData
352
		// Champs du BaseModelData
349
		Set<String> proprietes = this.getProperties().keySet();
353
		Set<String> proprietes = this.getProperties().keySet();
350
		for (Iterator<String> it = proprietes.iterator(); it.hasNext();) {
354
		for (Iterator<String> it = proprietes.iterator(); it.hasNext();) {
351
			String cle = it.next();
355
			String cle = it.next();
352
			sortie += cle+" : "+this.get(cle)+"\n";
356
			sortie += cle+" : "+this.get(cle)+"\n";
353
		}
357
		}
354
		
358
		
355
		// Champs spéciaux
359
		// Champs spéciaux
356
		sortie += getUrl();
360
		sortie += getUrl();
357
		
361
		
358
		return sortie;
362
		return sortie;
359
	}
363
	}
360
	
364
	
361
}
365
}