Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1488 Rev 1542
Line 1... Line 1...
1
package org.tela_botanica.client.modeles.objets;
1
package org.tela_botanica.client.modeles.objets;
Line -... Line 2...
-
 
2
 
-
 
3
import java.util.List;
-
 
4
import java.util.Map;
2
 
5
 
Line 3... Line 6...
3
import org.tela_botanica.client.util.Util;
6
import org.tela_botanica.client.util.Util;
Line 25... Line 28...
25
	private String numeroOrdre=null;
28
	private String numeroOrdre=null;
26
	private String motsCles=null;
29
	private String motsCles=null;
27
	private String latitude=null;
30
	private String latitude=null;
28
	private String longitude=null;
31
	private String longitude=null;
29
	private String referentielGeo=null;
32
	private String referentielGeo=null;
-
 
33
	private String referentielTaxo=null;
30
	private String abondance=null;
34
	private String abondance=null;
31
	private String certitude=null;
35
	private String certitude=null;
-
 
36
	private String phenologie=null;
-
 
37
	private String altitude=null;
-
 
38
	
-
 
39
	private Map<String, String> champsEtendus=null;
Line 32... Line 40...
32
 
40
 
33
	public Observation() {
41
	public Observation() {
Line 104... Line 112...
104
		this.latitude = Util.getValeurJsonOuVide(observation,"latitude");
112
		this.latitude = Util.getValeurJsonOuVide(observation,"latitude");
105
		this.longitude = Util.getValeurJsonOuVide(observation,"longitude");
113
		this.longitude = Util.getValeurJsonOuVide(observation,"longitude");
106
		this.motsCles = Util.getValeurJsonOuVide(observation,"mots_cles");
114
		this.motsCles = Util.getValeurJsonOuVide(observation,"mots_cles");
107
		this.abondance = Util.getValeurJsonOuVide(observation,"abondance");
115
		this.abondance = Util.getValeurJsonOuVide(observation,"abondance");
108
		this.certitude = Util.getValeurJsonOuVide(observation,"certitude");
116
		this.certitude = Util.getValeurJsonOuVide(observation,"certitude");
-
 
117
		this.phenologie = Util.getValeurJsonOuVide(observation,"phenologie");
-
 
118
		this.setReferentielTaxo(Util.getValeurJsonOuVide(observation,"nom_referentiel"));
109
	}
119
	}
Line 110... Line 120...
110
	
120
	
111
	/**
121
	/**
112
	 * Une observation saisie ou modifiee
122
	 * Une observation saisie ou modifiee
Line 285... Line 295...
285
	}
295
	}
Line 286... Line 296...
286
	
296
	
287
	public void setCertitude(String certitude) {
297
	public void setCertitude(String certitude) {
288
		this.certitude = certitude;
298
		this.certitude = certitude;
-
 
299
	}
-
 
300
 
-
 
301
	public String getReferentielTaxo() {
-
 
302
		return referentielTaxo;
-
 
303
	}
-
 
304
 
-
 
305
	public String getCodeCourtReferentielTaxo() {
-
 
306
		String codeRef = "";
-
 
307
		if(!getReferentielTaxo().equals("") && getReferentielTaxo().length() >= 5) {
-
 
308
			codeRef = referentielTaxo.substring(0, 5);
-
 
309
		}
-
 
310
		return codeRef;
-
 
311
	}
-
 
312
 
-
 
313
	public void setReferentielTaxo(String referentielTaxo) {
-
 
314
		this.referentielTaxo = referentielTaxo;
-
 
315
	}
-
 
316
	
-
 
317
	public String getPhenologie() {
-
 
318
		return phenologie;
-
 
319
	}
-
 
320
	
-
 
321
	public void setPhenologie(String phenologie) {
-
 
322
		this.phenologie = phenologie;
-
 
323
	}
-
 
324
 
-
 
325
	public String getAltitude() {
-
 
326
		return altitude;
-
 
327
	}
-
 
328
 
-
 
329
 
-
 
330
	public void setAltitude(String altitude) {
-
 
331
		this.altitude = altitude;
-
 
332
	}
-
 
333
 
-
 
334
 
-
 
335
	public void setValeurChampEtendu(String cle, String valeur) {
-
 
336
		champsEtendus.put(cle, valeur);
-
 
337
	}
-
 
338
 
-
 
339
	public String getValeurChampEtendu(String cle) {
-
 
340
		String valeur = "";
-
 
341
		if(champsEtendus.containsKey(cle)) {
-
 
342
			valeur = champsEtendus.get(cle);
-
 
343
		}
-
 
344
		
-
 
345
		return valeur;
-
 
346
	}
-
 
347
	
-
 
348
	public Map<String, String> getChampsEtendus() {
-
 
349
		return champsEtendus;
-
 
350
	}
-
 
351
 
-
 
352
 
-
 
353
	public void setChampsEtendus(Map<String, String> champsEtendus) {
-
 
354
		this.champsEtendus = champsEtendus;
289
	}
355
	}