Subversion Repositories eFlore/Applications.cel

Rev

Rev 963 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 963 Rev 971
Line 1... Line 1...
1
package org.tela_botanica.client.modeles;
1
package org.tela_botanica.client.modeles;
Line -... Line 2...
-
 
2
 
-
 
3
import org.tela_botanica.client.util.Util;
-
 
4
 
-
 
5
import com.google.gwt.json.client.JSONObject;
-
 
6
import com.google.gwt.json.client.JSONString;
Line 2... Line 7...
2
 
7
 
Line 3... Line 8...
3
 
8
 
4
public class Observation {
9
public class Observation {
Line 73... Line 78...
73
			}
78
			}
74
			else {
79
			else {
75
			 this.localite=localite;
80
			 this.localite=localite;
76
			}
81
			}
77
		}
82
		}
78
	    this.motsCles = "";
83
	    this.motsCles = "";	
-
 
84
	}
-
 
85
	
-
 
86
	public Observation(JSONObject observation) {
79
		 
87
		
-
 
88
		this.transmis=((JSONString) observation.get("transmission")).stringValue();
-
 
89
		this.identifiantLocalite=((JSONString) observation.get("ce_zone_geo")).toString();
-
 
90
		this.nomSaisi=Util.toCelString(((JSONString) observation.get("nom_sel")).toString());
-
 
91
		this.nomRetenu=Util.toCelString(((JSONString) observation.get("nom_ret")).toString());
-
 
92
		this.numeroNomenclaturalSaisi=((JSONString) observation.get("nom_sel_nn")).stringValue();
-
 
93
		this.numeroNomenclaturalRetenu=((JSONString) observation.get("nom_ret_nn")).stringValue();
-
 
94
		this.numeroTaxonomique=((JSONString) observation.get("nt")).stringValue();
-
 
95
		this.famille=Util.toCelString(((JSONString) observation .get("famille")).toString());
-
 
96
		this.localite=Util.toCelString(((JSONString) observation .get("zone_geo")).toString());
-
 
97
		this.lieudit=Util.toCelString(((JSONString) observation .get("lieudit")).toString());
-
 
98
		this.station=Util.toCelString(((JSONString) observation .get("station")).toString());
-
 
99
		this.milieu=Util.toCelString(((JSONString) observation .get("milieu")).toString());
-
 
100
		this.commentaire=Util.toCelString(((JSONString) observation .get("commentaire")).toString());
-
 
101
		this.date=((JSONString) observation .get("date_observation")).stringValue();
-
 
102
		this.numeroOrdre=((JSONString) observation.get("ordre")).stringValue();
-
 
103
		this.id=((JSONString) observation.get("id_observation")).stringValue();
-
 
104
		this.latitude=((JSONString) observation.get("latitude")).stringValue();
-
 
105
		this.longitude=((JSONString) observation.get("longitude")).stringValue();
-
 
106
		this.motsCles=((JSONString) observation.get("mots_cles")).stringValue();
Line 80... Line 107...
80
		
107
		
Line 81... Line 108...
81
	}
108
	}
Line 227... Line 254...
227
	
254
	
228
	public void setNumeroOrdre(String numeroOrdre) {
255
	public void setNumeroOrdre(String numeroOrdre) {
229
		this.numeroOrdre = numeroOrdre;
256
		this.numeroOrdre = numeroOrdre;
Line 230... Line 257...
230
	}
257
	}
231
	
258
	
232
	public void setCoordonneeX(String latitude) {
259
	public void setLatitude(String latitude) {
Line 233... Line 260...
233
		this.latitude = latitude;
260
		this.latitude = latitude;
234
	}
261
	}
235
	
262
	
Line 236... Line 263...
236
	public void setCoordonneeY(String longitude) {
263
	public void setLongitude(String longitude) {
237
		this.longitude = longitude;
264
		this.longitude = longitude;