Subversion Repositories eFlore/Applications.cel

Rev

Rev 2131 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2131 Rev 2163
1
package org.tela_botanica.client.modeles.objets;
1
package org.tela_botanica.client.modeles.objets;
2
 
2
 
3
import java.util.Map;
3
import java.util.Map;
4
 
4
 
5
import org.tela_botanica.client.util.Util;
5
import org.tela_botanica.client.util.Util;
6
 
6
 
7
import com.google.gwt.json.client.JSONObject;
7
import com.google.gwt.json.client.JSONObject;
8
 
8
 
9
 
9
 
10
public class Observation {
10
public class Observation {
11
 
11
 
12
	private String id=null;
12
	private String id=null;
13
	private String transmis=null;
13
	private String transmis=null;
14
	private String nomSaisi=null;
14
	private String nomSaisi=null;
15
	private String nomRetenu=null;
15
	private String nomRetenu=null;
16
	private String numeroNomenclaturalSaisi=null;
16
	private String numeroNomenclaturalSaisi=null;
17
	private String numeroNomenclaturalRetenu=null;
17
	private String numeroNomenclaturalRetenu=null;
18
	private String numeroTaxonomique=null;
18
	private String numeroTaxonomique=null;
19
	private String famille=null;
19
	private String famille=null;
20
	private String localite=null;
20
	private String localite=null;
21
	private String identifiantLocalite=null;
21
	private String identifiantLocalite=null;
22
	private String lieudit=null;
22
	private String lieudit=null;
23
	private String station=null;
23
	private String station=null;
24
	private String milieu=null;
24
	private String milieu=null;
25
	private String commentaire=null;
25
	private String commentaire=null;
26
	private String date=null;
26
	private String date=null;
27
	private String numeroOrdre=null;
27
	private String numeroOrdre=null;
28
	private String motsCles=null;
28
	private String motsCles=null;
29
	private String latitude=null;
29
	private String latitude=null;
30
	private String longitude=null;
30
	private String longitude=null;
31
	private String referentielGeo=null;
31
	private String referentielGeo=null;
32
	private String referentielTaxo=null;
32
	private String referentielTaxo=null;
33
	private String abondance=null;
33
	private String abondance=null;
34
	private String certitude=null;
34
	private String certitude=null;
35
	private String phenologie=null;
35
	private String phenologie=null;
36
	private String altitude=null;
36
	private String altitude=null;
37
	
37
	
38
	private Map<String, ChampEtendu> champsEtendus=null;
38
	private Map<String, ChampEtendu> champsEtendus=null;
39
 
39
 
40
	public Observation() {
40
	public Observation() {
41
	}
41
	}
42
 
42
 
43
	
43
	
44
	/**
44
	/**
45
	 * Une observation telle que stockee dans la base de donnee
45
	 * Une observation telle que stockee dans la base de donnee
46
	 * 
46
	 * 
47
	 * @param transmis
47
	 * @param transmis
48
	 * @param nomSaisi
48
	 * @param nomSaisi
49
	 * @param nomRetenu
49
	 * @param nomRetenu
50
	 * @param numeroNomenclaturalSaisi
50
	 * @param numeroNomenclaturalSaisi
51
	 * @param numeroNomenclaturalRetenu
51
	 * @param numeroNomenclaturalRetenu
52
	 * @param numeroTaxonomique
52
	 * @param numeroTaxonomique
53
	 * @param famille
53
	 * @param famille
54
	 * @param localite
54
	 * @param localite
55
	 * @param IdentifiantLocalite
55
	 * @param IdentifiantLocalite
56
	 * @param lieudit
56
	 * @param lieudit
57
	 * @param station
57
	 * @param station
58
	 * @param milieu
58
	 * @param milieu
59
	 * @param commentaire
59
	 * @param commentaire
60
	 * @param date
60
	 * @param date
61
	 * @param numeroOrdre
61
	 * @param numeroOrdre
62
	 */
62
	 */
63
	public Observation(String transmis, String nomSaisi, String nomRetenu, String numeroNomenclaturalSaisi,  String numeroNomenclaturalRetenu, String numeroTaxonomique, String famille, String localite, String identifiantLocalite, String lieudit, String station, String milieu, String commentaire, String date, String numeroOrdre) {
63
	public Observation(String transmis, String nomSaisi, String nomRetenu, String numeroNomenclaturalSaisi,  String numeroNomenclaturalRetenu, String numeroTaxonomique, String famille, String localite, String identifiantLocalite, String lieudit, String station, String milieu, String commentaire, String date, String numeroOrdre) {
64
		
64
		
65
		this.transmis = transmis;
65
		this.transmis = transmis;
66
		this.nomSaisi = nomSaisi;
66
		this.nomSaisi = nomSaisi;
67
		this.nomRetenu = nomRetenu;
67
		this.nomRetenu = nomRetenu;
68
		this.numeroNomenclaturalSaisi = numeroNomenclaturalSaisi;
68
		this.numeroNomenclaturalSaisi = numeroNomenclaturalSaisi;
69
		this.numeroNomenclaturalRetenu = numeroNomenclaturalRetenu;
69
		this.numeroNomenclaturalRetenu = numeroNomenclaturalRetenu;
70
		this.numeroTaxonomique = numeroTaxonomique;
70
		this.numeroTaxonomique = numeroTaxonomique;
71
		this.famille = famille;
71
		this.famille = famille;
72
		
72
		
73
		this.identifiantLocalite = identifiantLocalite;		
73
		this.identifiantLocalite = identifiantLocalite;		
74
		this.lieudit = lieudit;
74
		this.lieudit = lieudit;
75
		this.station = station;
75
		this.station = station;
76
		this.milieu = milieu;
76
		this.milieu = milieu;
77
		this.commentaire = commentaire;
77
		this.commentaire = commentaire;
78
		this.date = date;
78
		this.date = date;
79
		this.numeroOrdre = numeroOrdre;
79
		this.numeroOrdre = numeroOrdre;
80
		
80
		
81
		 // Suppresion indication departementale (on pourrait faire mieux !!)
81
		 // Suppresion indication departementale (on pourrait faire mieux !!)
82
		if(localite != null) {
82
		if(localite != null) {
83
			int pos=localite.indexOf(" (" );
83
			int pos=localite.indexOf(" (" );
84
			if (pos>=0) {
84
			if (pos>=0) {
85
	    	this.localite=localite.substring(0,pos);
85
	    	this.localite=localite.substring(0,pos);
86
			}
86
			}
87
			else {
87
			else {
88
			 this.localite=localite;
88
			 this.localite=localite;
89
			}
89
			}
90
		}
90
		}
91
	    this.motsCles = "";	
91
	    this.motsCles = "";	
92
	}
92
	}
93
	
93
	
94
	public Observation(JSONObject observation) {
94
	public Observation(JSONObject observation) {
95
		this.transmis = Util.getValeurJsonOuVide(observation, "transmission");
95
		this.transmis = Util.getValeurJsonOuVide(observation, "transmission");
96
		this.identifiantLocalite = Util.getValeurJsonOuVide(observation, "ce_zone_geo");
96
		this.identifiantLocalite = Util.getValeurJsonOuVide(observation, "ce_zone_geo");
97
		this.nomSaisi = Util.getValeurJsonOuVide(observation, "nom_sel");
97
		this.nomSaisi = Util.getValeurJsonOuVide(observation, "nom_sel");
98
		this.nomRetenu = (Util.getValeurJsonOuVide(observation,"nom_ret"));
98
		this.nomRetenu = (Util.getValeurJsonOuVide(observation,"nom_ret"));
99
		this.numeroNomenclaturalSaisi = Util.getValeurJsonOuVide(observation,"nom_sel_nn");
99
		this.numeroNomenclaturalSaisi = Util.getValeurJsonOuVide(observation,"nom_sel_nn");
100
		this.numeroNomenclaturalRetenu = Util.getValeurJsonOuVide(observation,"nom_ret_nn");
100
		this.numeroNomenclaturalRetenu = Util.getValeurJsonOuVide(observation,"nom_ret_nn");
101
		this.numeroTaxonomique= Util.getValeurJsonOuVide(observation,"nt");
101
		this.numeroTaxonomique= Util.getValeurJsonOuVide(observation,"nt");
102
		this.famille = Util.getValeurJsonOuVide(observation,"famille");
102
		this.famille = Util.getValeurJsonOuVide(observation,"famille");
103
		this.localite = Util.getValeurJsonOuVide(observation,"zone_geo");
103
		this.localite = Util.getValeurJsonOuVide(observation,"zone_geo");
104
		this.lieudit = Util.getValeurJsonOuVide(observation,"lieudit");
104
		this.lieudit = Util.getValeurJsonOuVide(observation,"lieudit");
105
		this.station= Util.getValeurJsonOuVide(observation,"station");
105
		this.station= Util.getValeurJsonOuVide(observation,"station");
106
		this.milieu = Util.getValeurJsonOuVide(observation,"milieu");
106
		this.milieu = Util.getValeurJsonOuVide(observation,"milieu");
107
		this.commentaire = Util.getValeurJsonOuVide(observation,"commentaire");
107
		this.commentaire = Util.getValeurJsonOuVide(observation,"commentaire");
108
		this.date = Util.getValeurJsonOuVide(observation,"date_observation");
108
		this.date = Util.getValeurJsonOuVide(observation,"date_observation");
109
		this.numeroOrdre = Util.getValeurJsonOuVide(observation,"ordre");
109
		this.numeroOrdre = Util.getValeurJsonOuVide(observation,"ordre");
110
		this.id = Util.getValeurJsonOuVide(observation,"id_observation");
110
		this.id = Util.getValeurJsonOuVide(observation,"id_observation");
111
		this.latitude = Util.getValeurJsonOuVide(observation,"latitude");
111
		this.latitude = Util.getValeurJsonOuVide(observation,"latitude");
112
		this.longitude = Util.getValeurJsonOuVide(observation,"longitude");
112
		this.longitude = Util.getValeurJsonOuVide(observation,"longitude");
113
		this.altitude = Util.getValeurJsonOuVide(observation,"altitude");
113
		this.altitude = Util.getValeurJsonOuVide(observation,"altitude");
114
		this.motsCles = Util.getValeurJsonOuVide(observation,"mots_cles");
114
		this.motsCles = Util.getValeurJsonOuVide(observation,"mots_cles");
115
		this.abondance = Util.getValeurJsonOuVide(observation,"abondance");
115
		this.abondance = Util.getValeurJsonOuVide(observation,"abondance");
116
		this.certitude = Util.getValeurJsonOuVide(observation,"certitude");
116
		this.certitude = Util.getValeurJsonOuVide(observation,"certitude");
117
		this.phenologie = Util.getValeurJsonOuVide(observation,"phenologie");
117
		this.phenologie = Util.getValeurJsonOuVide(observation,"phenologie");
118
		this.setReferentielTaxo(Util.getValeurJsonOuVide(observation,"nom_referentiel"));
118
		this.setReferentielTaxo(Util.getValeurJsonOuVide(observation,"nom_referentiel"));
119
		this.setChampsEtendus(Util.getMapValeursOuVide(observation, "obs_etendue"));
119
		this.setChampsEtendus(Util.getMapValeursOuVide(observation, "obs_etendue"));
120
	}
120
	}
121
	
121
	
122
	/**
122
	/**
123
	 * Une observation saisie ou modifiee
123
	 * Une observation saisie ou modifiee
124
	 * 
124
	 * 
125
	 * @param nomSaisi
125
	 * @param nomSaisi
126
	 * @param numeroNomenclaturalSaisi
126
	 * @param numeroNomenclaturalSaisi
127
	 * @param localite
127
	 * @param localite
128
	 * @param IdentifiantLocalite
128
	 * @param IdentifiantLocalite
129
	 * @param lieudit
129
	 * @param lieudit
130
	 * @param station
130
	 * @param station
131
	 * @param milieu
131
	 * @param milieu
132
	 * @param commentaire
132
	 * @param commentaire
133
	 * @param date
133
	 * @param date
134
	 * 
134
	 * 
135
	 */
135
	 */
136
	public Observation(String nomSaisi, String numeroNomenclaturalSaisi,   String localite, String identifiantLocalite, String lieudit, String station, String milieu, String commentaire, String date) {
136
	public Observation(String nomSaisi, String numeroNomenclaturalSaisi,   String localite, String identifiantLocalite, String lieudit, String station, String milieu, String commentaire, String date) {
137
		
137
		
138
		this.nomSaisi = nomSaisi;
138
		this.nomSaisi = nomSaisi;
139
		this.numeroNomenclaturalSaisi = numeroNomenclaturalSaisi;
139
		this.numeroNomenclaturalSaisi = numeroNomenclaturalSaisi;
140
		
140
		
141
		this.identifiantLocalite = identifiantLocalite;		
141
		this.identifiantLocalite = identifiantLocalite;		
142
		this.lieudit = lieudit;
142
		this.lieudit = lieudit;
143
		this.station = station;
143
		this.station = station;
144
		this.milieu = milieu;
144
		this.milieu = milieu;
145
		this.commentaire = commentaire;
145
		this.commentaire = commentaire;
146
		this.date = date;
146
		this.date = date;
147
		
147
		
148
		 // Suppresion indication departementale (on pourrait faire mieux !!)
148
		 // Suppresion indication departementale (on pourrait faire mieux !!)
149
		if(localite != null) {
149
		if(localite != null) {
150
			int pos=localite.indexOf(" (" );
150
			int pos=localite.indexOf(" (" );
151
		    if (pos>=0) {
151
		    if (pos>=0) {
152
		    	this.localite=localite.substring(0,pos);
152
		    	this.localite=localite.substring(0,pos);
153
		    }
153
		    }
154
			else {
154
			else {
155
				 this.localite=localite;
155
				 this.localite=localite;
156
			}
156
			}
157
		}
157
		}
158
	    
158
	    
159
	    this.motsCles = "" ;
159
	    this.motsCles = "" ;
160
		
160
		
161
	}
161
	}
162
 
162
 
163
 
163
 
164
	public String getNomSaisi() {
164
	public String getNomSaisi() {
165
		return nomSaisi;
165
		return nomSaisi;
166
	}
166
	}
167
 
167
 
168
 
168
 
169
	public String getNumeroOrdre() {
169
	public String getNumeroOrdre() {
170
		return numeroOrdre;
170
		return numeroOrdre;
171
	}
171
	}
172
 
172
 
173
 
173
 
174
	public String getCommentaire() {
174
	public String getCommentaire() {
175
		return commentaire;
175
		return commentaire;
176
	}
176
	}
177
 
177
 
178
 
178
 
179
	public String getDate() {
179
	public String getDate() {
180
		return date;
180
		return date;
181
	}
181
	}
182
 
182
 
183
 
183
 
184
	public String getFamille() {
184
	public String getFamille() {
185
		return famille;
185
		return famille;
186
	}
186
	}
187
 
187
 
188
 
188
 
189
	public String getLieudit() {
189
	public String getLieudit() {
190
		return lieudit;
190
		return lieudit;
191
	}
191
	}
192
 
192
 
193
 
193
 
194
	public String getLocalite() {
194
	public String getLocalite() {
195
		return localite;
195
		return localite;
196
	}
196
	}
197
 
197
 
198
 
198
 
199
	public String getIdentifiantLocalite() {
199
	public String getIdentifiantLocalite() {
200
		if(identifiantLocalite != null) {
200
		if(identifiantLocalite != null) {
201
			identifiantLocalite = identifiantLocalite.replaceAll("\"", "");
201
			identifiantLocalite = identifiantLocalite.replaceAll("\"", "");
202
		}
202
		}
203
		return identifiantLocalite; 
203
		return identifiantLocalite; 
204
	}
204
	}
205
 
205
 
206
	
206
	
207
	public String getMilieu() {
207
	public String getMilieu() {
208
		return milieu;
208
		return milieu;
209
	}
209
	}
210
 
210
 
211
 
211
 
212
	public String getNomRetenu() {
212
	public String getNomRetenu() {
213
		return nomRetenu;
213
		return nomRetenu;
214
	}
214
	}
215
 
215
 
216
 
216
 
217
	public String getNumeroNomenclaturalSaisi() {
217
	public String getNumeroNomenclaturalSaisi() {
218
		return numeroNomenclaturalSaisi;
218
		return numeroNomenclaturalSaisi;
219
	}
219
	}
220
 
220
 
221
 
221
 
222
	public String getNumeroNomenclaturalRetenu() {
222
	public String getNumeroNomenclaturalRetenu() {
223
		return numeroNomenclaturalRetenu;
223
		return numeroNomenclaturalRetenu;
224
	}
224
	}
225
 
225
 
226
 
226
 
227
	public String getNumeroTaxonomique() {
227
	public String getNumeroTaxonomique() {
228
		return numeroTaxonomique;
228
		return numeroTaxonomique;
229
	}
229
	}
230
 
230
 
231
	public void setNomRetenu(String nomRetenu) {
231
	public void setNomRetenu(String nomRetenu) {
232
		this.nomRetenu = nomRetenu;
232
		this.nomRetenu = nomRetenu;
233
	}
233
	}
234
 
234
 
235
	public void setNumeroNomenclaturalSaisi(String numeroNomenclaturalSaisi) {
235
	public void setNumeroNomenclaturalSaisi(String numeroNomenclaturalSaisi) {
236
		this.numeroNomenclaturalSaisi = numeroNomenclaturalSaisi;
236
		this.numeroNomenclaturalSaisi = numeroNomenclaturalSaisi;
237
	}
237
	}
238
 
238
 
239
	public void setNumeroNomenclaturalRetenu(String numeroNomenclaturalRetenu) {
239
	public void setNumeroNomenclaturalRetenu(String numeroNomenclaturalRetenu) {
240
		this.numeroNomenclaturalRetenu = numeroNomenclaturalRetenu;
240
		this.numeroNomenclaturalRetenu = numeroNomenclaturalRetenu;
241
	}
241
	}
242
 
242
 
243
	public void setNumeroTaxonomique(String numeroTaxonomique) {
243
	public void setNumeroTaxonomique(String numeroTaxonomique) {
244
		this.numeroTaxonomique = numeroTaxonomique;
244
		this.numeroTaxonomique = numeroTaxonomique;
245
	}
245
	}
246
 
246
 
247
	public String getStation() {
247
	public String getStation() {
248
		return station;
248
		return station;
249
	}
249
	}
250
 
250
 
251
 
251
 
252
	public String getTransmis() {
252
	public String getTransmis() {
253
		return transmis;
253
		return transmis;
254
	}
254
	}
255
	
255
	
256
	public String getMotsCles() {
256
	public String getMotsCles() {
257
		return motsCles;
257
		return motsCles;
258
	}
258
	}
259
	
259
	
260
	public String getLatitude() {
260
	public String getLatitude() {
261
		return this.latitude ;
261
		return this.latitude ;
262
	}
262
	}
263
	
263
	
264
	public String getLongitude() {
264
	public String getLongitude() {
265
		return this.longitude ;
265
		return this.longitude ;
266
	}
266
	}
267
	
267
	
268
	public String getReferentielGeo() {
268
	public String getReferentielGeo() {
269
		return this.referentielGeo ;
269
		return this.referentielGeo ;
270
	}
270
	}
271
	
271
	
272
	public String getId() {
272
	public String getId() {
273
		return this.id;
273
		return this.id;
274
	}
274
	}
275
	
275
	
276
	public String getAbondance() {
276
	public String getAbondance() {
277
		return this.abondance;
277
		return this.abondance;
278
	}
278
	}
279
	
279
	
280
	public String getCertitude() {
280
	public String getCertitude() {
281
		return this.certitude;
281
		return this.certitude;
282
	}
282
	}
283
	
283
	
284
	public void setMotsCles(String motsCles) {
284
	public void setMotsCles(String motsCles) {
285
		this.motsCles = motsCles;
285
		this.motsCles = motsCles;
286
	}
286
	}
287
	
287
	
288
	public void setNumeroOrdre(String numeroOrdre) {
288
	public void setNumeroOrdre(String numeroOrdre) {
289
		this.numeroOrdre = numeroOrdre;
289
		this.numeroOrdre = numeroOrdre;
290
	}
290
	}
291
	
291
	
292
	public void setLatitude(String latitude) {
292
	public void setLatitude(String latitude) {
293
		this.latitude = latitude;
293
		this.latitude = latitude;
294
	}
294
	}
295
	
295
	
296
	public void setLongitude(String longitude) {
296
	public void setLongitude(String longitude) {
297
		this.longitude = longitude;
297
		this.longitude = longitude;
298
	}
298
	}
299
	
299
	
300
	public void setReferentielGeo(String refGeo) {
300
	public void setReferentielGeo(String refGeo) {
301
		this.referentielGeo = refGeo;
301
		this.referentielGeo = refGeo;
302
	}
302
	}
303
 
303
 
304
	public void setId(String id) {
304
	public void setId(String id) {
305
		this.id = id;
305
		this.id = id;
306
	}
306
	}
307
	
307
	
308
	public void setAbondance(String abondance) {
308
	public void setAbondance(String abondance) {
309
		this.abondance = abondance;
309
		this.abondance = abondance;
310
	}
310
	}
311
	
311
	
312
	public void setCertitude(String certitude) {
312
	public void setCertitude(String certitude) {
313
		this.certitude = certitude;
313
		this.certitude = certitude;
314
	}
314
	}
315
 
315
 
316
	public String getReferentielTaxo() {
316
	public String getReferentielTaxo() {
317
		return referentielTaxo;
317
		return referentielTaxo;
318
	}
318
	}
319
 
319
 
320
	public String getCodeCourtReferentielTaxo() {
320
	public String getCodeCourtReferentielTaxo() {
321
		String codeRef = "";
321
		String codeRef = "";
322
		if(!getReferentielTaxo().equals("") && getReferentielTaxo().length() >= 5) {
322
		if(!getReferentielTaxo().equals("") && getReferentielTaxo().length() >= 3) {
-
 
323
			int positionDeuxPoints = referentielTaxo.indexOf(':');
-
 
324
			if (positionDeuxPoints == -1) {
-
 
325
				codeRef = referentielTaxo;
-
 
326
			} else {
323
			codeRef = referentielTaxo.substring(0, 5);
327
				codeRef = referentielTaxo.substring(0, positionDeuxPoints);
-
 
328
			}
324
		}
329
		}
325
		return codeRef;
330
		return codeRef;
326
	}
331
	}
327
 
332
 
328
	public void setReferentielTaxo(String referentielTaxo) {
333
	public void setReferentielTaxo(String referentielTaxo) {
329
		this.referentielTaxo = referentielTaxo;
334
		this.referentielTaxo = referentielTaxo;
330
	}
335
	}
331
	
336
	
332
	public String getPhenologie() {
337
	public String getPhenologie() {
333
		return phenologie;
338
		return phenologie;
334
	}
339
	}
335
	
340
	
336
	public void setPhenologie(String phenologie) {
341
	public void setPhenologie(String phenologie) {
337
		this.phenologie = phenologie;
342
		this.phenologie = phenologie;
338
	}
343
	}
339
 
344
 
340
	public String getAltitude() {
345
	public String getAltitude() {
341
		return altitude;
346
		return altitude;
342
	}
347
	}
343
 
348
 
344
 
349
 
345
	public void setAltitude(String altitude) {
350
	public void setAltitude(String altitude) {
346
		this.altitude = altitude;
351
		this.altitude = altitude;
347
	}
352
	}
348
 
353
 
349
 
354
 
350
	public void setValeurChampEtendu(String cle, String valeur, String label) {
355
	public void setValeurChampEtendu(String cle, String valeur, String label) {
351
		ChampEtendu champ = new ChampEtendu(cle, label, valeur);
356
		ChampEtendu champ = new ChampEtendu(cle, label, valeur);
352
		champsEtendus.put(cle, champ);
357
		champsEtendus.put(cle, champ);
353
	}
358
	}
354
	
359
	
355
	public ChampEtendu getChampEtendu(String cle) {
360
	public ChampEtendu getChampEtendu(String cle) {
356
		ChampEtendu champ = null;
361
		ChampEtendu champ = null;
357
		if(champsEtendus.containsKey(cle)) {
362
		if(champsEtendus.containsKey(cle)) {
358
			champ = champsEtendus.get(cle);
363
			champ = champsEtendus.get(cle);
359
		}
364
		}
360
		
365
		
361
		return champ;
366
		return champ;
362
	}
367
	}
363
	
368
	
364
	public String getLabelChampEtendu(String cle) {
369
	public String getLabelChampEtendu(String cle) {
365
		String valeur = "";
370
		String valeur = "";
366
		if(champsEtendus.containsKey(cle)) {
371
		if(champsEtendus.containsKey(cle)) {
367
			valeur = champsEtendus.get(cle).getLabel();
372
			valeur = champsEtendus.get(cle).getLabel();
368
		}
373
		}
369
		return valeur;
374
		return valeur;
370
	}
375
	}
371
 
376
 
372
	public String getValeurChampEtendu(String cle) {
377
	public String getValeurChampEtendu(String cle) {
373
		String valeur = "";
378
		String valeur = "";
374
		if(champsEtendus.containsKey(cle)) {
379
		if(champsEtendus.containsKey(cle)) {
375
			valeur = champsEtendus.get(cle).getValeur();
380
			valeur = champsEtendus.get(cle).getValeur();
376
		}
381
		}
377
		return valeur;
382
		return valeur;
378
	}
383
	}
379
	
384
	
380
	public Map<String, ChampEtendu> getChampsEtendus() {
385
	public Map<String, ChampEtendu> getChampsEtendus() {
381
		return champsEtendus;
386
		return champsEtendus;
382
	}
387
	}
383
 
388
 
384
	public void setChampsEtendus(Map<String, ChampEtendu> champsEtendus) {
389
	public void setChampsEtendus(Map<String, ChampEtendu> champsEtendus) {
385
		this.champsEtendus = champsEtendus;
390
		this.champsEtendus = champsEtendus;
386
	}
391
	}
387
}
392
}