Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 217 Rev 255
1
package org.tela_botanica.client.modeles;
1
package org.tela_botanica.client.modeles;
2
 
2
 
3
 
3
 
4
public class Observation {
4
public class Observation {
5
 
5
 
6
 
6
 
7
	private String transmis=null;
7
	private String transmis=null;
8
	private String nomSaisi=null;
8
	private String nomSaisi=null;
9
	private String nomRetenu=null;
9
	private String nomRetenu=null;
10
	private String numeroNomenclaturalSaisi=null;
10
	private String numeroNomenclaturalSaisi=null;
11
	private String numeroNomenclaturalRetenu=null;
11
	private String numeroNomenclaturalRetenu=null;
12
	private String numeroTaxonomique=null;
12
	private String numeroTaxonomique=null;
13
	private String famille=null;
13
	private String famille=null;
14
	private String localite=null;
14
	private String localite=null;
15
	private String identifiantLocalite=null;
15
	private String identifiantLocalite=null;
16
	private String lieudit=null;
16
	private String lieudit=null;
17
	private String station=null;
17
	private String station=null;
18
	private String milieu=null;
18
	private String milieu=null;
19
	private String commentaire=null;
19
	private String commentaire=null;
20
	private String date=null;
20
	private String date=null;
21
	private String numeroOrdre=null;
21
	private String numeroOrdre=null;
22
	private String motsCles=null;
22
	private String motsCles=null;
-
 
23
	private String coordonneeX=null;
-
 
24
	private String coordonneeY=null;
-
 
25
	private String referentielGeo=null;
-
 
26
	private String systemeCoordonnees=null;
23
 
27
 
24
 
28
 
25
 
29
 
26
 
30
 
27
	public Observation() {
31
	public Observation() {
28
	}
32
	}
29
 
33
 
30
	
34
	
31
	/**
35
	/**
32
	 * Une observation telle que stockee dans la base de donnee
36
	 * Une observation telle que stockee dans la base de donnee
33
	 * 
37
	 * 
34
	 * @param transmis
38
	 * @param transmis
35
	 * @param nomSaisi
39
	 * @param nomSaisi
36
	 * @param nomRetenu
40
	 * @param nomRetenu
37
	 * @param numeroNomenclaturalSaisi
41
	 * @param numeroNomenclaturalSaisi
38
	 * @param numeroNomenclaturalRetenu
42
	 * @param numeroNomenclaturalRetenu
39
	 * @param numeroTaxonomique
43
	 * @param numeroTaxonomique
40
	 * @param famille
44
	 * @param famille
41
	 * @param localite
45
	 * @param localite
42
	 * @param IdentifiantLocalite
46
	 * @param IdentifiantLocalite
43
	 * @param lieudit
47
	 * @param lieudit
44
	 * @param station
48
	 * @param station
45
	 * @param milieu
49
	 * @param milieu
46
	 * @param commentaire
50
	 * @param commentaire
47
	 * @param date
51
	 * @param date
48
	 * @param numeroOrdre
52
	 * @param numeroOrdre
49
	 */
53
	 */
50
	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) {
54
	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) {
51
		
55
		
52
		this.transmis = transmis;
56
		this.transmis = transmis;
53
		this.nomSaisi = nomSaisi;
57
		this.nomSaisi = nomSaisi;
54
		this.nomRetenu = nomRetenu;
58
		this.nomRetenu = nomRetenu;
55
		this.numeroNomenclaturalSaisi = numeroNomenclaturalSaisi;
59
		this.numeroNomenclaturalSaisi = numeroNomenclaturalSaisi;
56
		this.numeroNomenclaturalRetenu = numeroNomenclaturalRetenu;
60
		this.numeroNomenclaturalRetenu = numeroNomenclaturalRetenu;
57
		this.numeroTaxonomique = numeroTaxonomique;
61
		this.numeroTaxonomique = numeroTaxonomique;
58
		this.famille = famille;
62
		this.famille = famille;
59
		
63
		
60
		this.identifiantLocalite = identifiantLocalite;		
64
		this.identifiantLocalite = identifiantLocalite;		
61
		this.lieudit = lieudit;
65
		this.lieudit = lieudit;
62
		this.station = station;
66
		this.station = station;
63
		this.milieu = milieu;
67
		this.milieu = milieu;
64
		this.commentaire = commentaire;
68
		this.commentaire = commentaire;
65
		this.date = date;
69
		this.date = date;
66
		this.numeroOrdre = numeroOrdre;
70
		this.numeroOrdre = numeroOrdre;
67
		
71
		
68
		 // Suppresion indication departementale (on pourrait faire mieux !!)
72
		 // Suppresion indication departementale (on pourrait faire mieux !!)
69
		int pos=localite.indexOf(" (" );
73
		int pos=localite.indexOf(" (" );
70
	    if (pos>=0) {
74
	    if (pos>=0) {
71
	    	this.localite=localite.substring(0,pos);
75
	    	this.localite=localite.substring(0,pos);
72
	    }
76
	    }
73
		else {
77
		else {
74
			 this.localite=localite;
78
			 this.localite=localite;
75
		}
79
		}
76
	    
80
	    
77
	    this.motsCles = "";
81
	    this.motsCles = "";
78
		 
82
		 
79
		
83
		
80
	}
84
	}
81
	
85
	
82
	/**
86
	/**
83
	 * Une observation telle que stockee dans la base de donnee avec les mots clés
87
	 * Une observation telle que stockee dans la base de donnee avec les mots clés
84
	 * 
88
	 * 
85
	 * @param transmis
89
	 * @param transmis
86
	 * @param nomSaisi
90
	 * @param nomSaisi
87
	 * @param nomRetenu
91
	 * @param nomRetenu
88
	 * @param numeroNomenclaturalSaisi
92
	 * @param numeroNomenclaturalSaisi
89
	 * @param numeroNomenclaturalRetenu
93
	 * @param numeroNomenclaturalRetenu
90
	 * @param numeroTaxonomique
94
	 * @param numeroTaxonomique
91
	 * @param famille
95
	 * @param famille
92
	 * @param localite
96
	 * @param localite
93
	 * @param IdentifiantLocalite
97
	 * @param IdentifiantLocalite
94
	 * @param lieudit
98
	 * @param lieudit
95
	 * @param station
99
	 * @param station
96
	 * @param milieu
100
	 * @param milieu
97
	 * @param commentaire
101
	 * @param commentaire
98
	 * @param date
102
	 * @param date
99
	 * @param numeroOrdre
103
	 * @param numeroOrdre
100
	 * @param motsCles
104
	 * @param motsCles
101
	 */
105
	 */
102
	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, String motsCles) {
106
	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, String motsCles) {
103
		
107
		
104
		this.transmis = transmis;
108
		this.transmis = transmis;
105
		this.nomSaisi = nomSaisi;
109
		this.nomSaisi = nomSaisi;
106
		this.nomRetenu = nomRetenu;
110
		this.nomRetenu = nomRetenu;
107
		this.numeroNomenclaturalSaisi = numeroNomenclaturalSaisi;
111
		this.numeroNomenclaturalSaisi = numeroNomenclaturalSaisi;
108
		this.numeroNomenclaturalRetenu = numeroNomenclaturalRetenu;
112
		this.numeroNomenclaturalRetenu = numeroNomenclaturalRetenu;
109
		this.numeroTaxonomique = numeroTaxonomique;
113
		this.numeroTaxonomique = numeroTaxonomique;
110
		this.famille = famille;
114
		this.famille = famille;
111
		
115
		
112
		this.identifiantLocalite = identifiantLocalite;		
116
		this.identifiantLocalite = identifiantLocalite;		
113
		this.lieudit = lieudit;
117
		this.lieudit = lieudit;
114
		this.station = station;
118
		this.station = station;
115
		this.milieu = milieu;
119
		this.milieu = milieu;
116
		this.commentaire = commentaire;
120
		this.commentaire = commentaire;
117
		this.date = date;
121
		this.date = date;
118
		this.numeroOrdre = numeroOrdre;
122
		this.numeroOrdre = numeroOrdre;
119
		
123
		
120
		 // Suppresion indication departementale (on pourrait faire mieux !!)
124
		 // Suppresion indication departementale (on pourrait faire mieux !!)
121
		int pos=localite.indexOf(" (" );
125
		int pos=localite.indexOf(" (" );
122
	    if (pos>=0) {
126
	    if (pos>=0) {
123
	    	this.localite=localite.substring(0,pos);
127
	    	this.localite=localite.substring(0,pos);
124
	    }
128
	    }
125
		else {
129
		else {
126
			 this.localite=localite;
130
			 this.localite=localite;
127
		}
131
		}
128
	    
132
	    
129
	    this.motsCles = motsCles;
133
	    this.motsCles = motsCles;
130
		 
134
		 
131
		
135
		
132
	}
136
	}
133
 
137
 
134
	
138
	
135
	/**
139
	/**
136
	 * Une observation saisie ou modifiee
140
	 * Une observation saisie ou modifiee
137
	 * 
141
	 * 
138
	 * @param nomSaisi
142
	 * @param nomSaisi
139
	 * @param numeroNomenclaturalSaisi
143
	 * @param numeroNomenclaturalSaisi
140
	 * @param localite
144
	 * @param localite
141
	 * @param IdentifiantLocalite
145
	 * @param IdentifiantLocalite
142
	 * @param lieudit
146
	 * @param lieudit
143
	 * @param station
147
	 * @param station
144
	 * @param milieu
148
	 * @param milieu
145
	 * @param commentaire
149
	 * @param commentaire
146
	 * @param date
150
	 * @param date
147
	 * 
151
	 * 
148
	 */
152
	 */
149
	
153
	
150
	public Observation(String nomSaisi, String numeroNomenclaturalSaisi,   String localite, String identifiantLocalite, String lieudit, String station, String milieu, String commentaire, String date) {
154
	public Observation(String nomSaisi, String numeroNomenclaturalSaisi,   String localite, String identifiantLocalite, String lieudit, String station, String milieu, String commentaire, String date) {
151
		
155
		
152
		this.nomSaisi = nomSaisi;
156
		this.nomSaisi = nomSaisi;
153
		this.numeroNomenclaturalSaisi = numeroNomenclaturalSaisi;
157
		this.numeroNomenclaturalSaisi = numeroNomenclaturalSaisi;
154
		
158
		
155
		this.identifiantLocalite = identifiantLocalite;		
159
		this.identifiantLocalite = identifiantLocalite;		
156
		this.lieudit = lieudit;
160
		this.lieudit = lieudit;
157
		this.station = station;
161
		this.station = station;
158
		this.milieu = milieu;
162
		this.milieu = milieu;
159
		this.commentaire = commentaire;
163
		this.commentaire = commentaire;
160
		this.date = date;
164
		this.date = date;
161
		
165
		
162
		 // Suppresion indication departementale (on pourrait faire mieux !!)
166
		 // Suppresion indication departementale (on pourrait faire mieux !!)
163
		if(localite != null) {
167
		if(localite != null) {
164
			int pos=localite.indexOf(" (" );
168
			int pos=localite.indexOf(" (" );
165
		    if (pos>=0) {
169
		    if (pos>=0) {
166
		    	this.localite=localite.substring(0,pos);
170
		    	this.localite=localite.substring(0,pos);
167
		    }
171
		    }
168
			else {
172
			else {
169
				 this.localite=localite;
173
				 this.localite=localite;
170
			}
174
			}
171
		}
175
		}
172
	    
176
	    
173
	    this.motsCles = "" ;
177
	    this.motsCles = "" ;
174
		
178
		
175
	}
179
	}
176
 
180
 
177
 
181
 
178
	public String getNomSaisi() {
182
	public String getNomSaisi() {
179
		return nomSaisi;
183
		return nomSaisi;
180
	}
184
	}
181
 
185
 
182
 
186
 
183
	public String getNumeroOrdre() {
187
	public String getNumeroOrdre() {
184
		return numeroOrdre;
188
		return numeroOrdre;
185
	}
189
	}
186
 
190
 
187
 
191
 
188
	public String getCommentaire() {
192
	public String getCommentaire() {
189
		return commentaire;
193
		return commentaire;
190
	}
194
	}
191
 
195
 
192
 
196
 
193
	public String getDate() {
197
	public String getDate() {
194
		return date;
198
		return date;
195
	}
199
	}
196
 
200
 
197
 
201
 
198
	public String getFamille() {
202
	public String getFamille() {
199
		return famille;
203
		return famille;
200
	}
204
	}
201
 
205
 
202
 
206
 
203
	public String getLieudit() {
207
	public String getLieudit() {
204
		return lieudit;
208
		return lieudit;
205
	}
209
	}
206
 
210
 
207
 
211
 
208
	public String getLocalite() {
212
	public String getLocalite() {
209
		return localite;
213
		return localite;
210
	}
214
	}
211
 
215
 
212
 
216
 
213
	public String getIdentifiantLocalite() {
217
	public String getIdentifiantLocalite() {
214
		return identifiantLocalite;
218
		return identifiantLocalite;
215
	}
219
	}
216
 
220
 
217
	
221
	
218
	public String getMilieu() {
222
	public String getMilieu() {
219
		return milieu;
223
		return milieu;
220
	}
224
	}
221
 
225
 
222
 
226
 
223
	public String getNomRetenu() {
227
	public String getNomRetenu() {
224
		return nomRetenu;
228
		return nomRetenu;
225
	}
229
	}
226
 
230
 
227
 
231
 
228
	public String getNumeroNomenclaturalSaisi() {
232
	public String getNumeroNomenclaturalSaisi() {
229
		return numeroNomenclaturalSaisi;
233
		return numeroNomenclaturalSaisi;
230
	}
234
	}
231
 
235
 
232
 
236
 
233
	public String getNumeroNomenclaturalRetenu() {
237
	public String getNumeroNomenclaturalRetenu() {
234
		return numeroNomenclaturalRetenu;
238
		return numeroNomenclaturalRetenu;
235
	}
239
	}
236
 
240
 
237
 
241
 
238
	public String getNumeroTaxonomique() {
242
	public String getNumeroTaxonomique() {
239
		return numeroTaxonomique;
243
		return numeroTaxonomique;
240
	}
244
	}
241
 
245
 
242
 
246
 
243
	public String getStation() {
247
	public String getStation() {
244
		return station;
248
		return station;
245
	}
249
	}
246
 
250
 
247
 
251
 
248
	public String getTransmis() {
252
	public String getTransmis() {
249
		return transmis;
253
		return transmis;
250
	}
254
	}
251
	
255
	
252
	public String getMotsCles() {
256
	public String getMotsCles() {
253
		return motsCles;
257
		return motsCles;
254
	}
258
	}
-
 
259
	
-
 
260
	public String getCoordonneeX() {
-
 
261
		return this.coordonneeX ;
-
 
262
	}
-
 
263
	
-
 
264
	public String getCoordonneeY() {
-
 
265
		return this.coordonneeY ;
-
 
266
	}
-
 
267
	
-
 
268
	public String getReferentielGeo() {
-
 
269
		return this.referentielGeo ;
-
 
270
	}
-
 
271
	
-
 
272
	public String getSystemeCoordonnees() {
-
 
273
		return this.systemeCoordonnees ;
-
 
274
	}
255
	
275
	
256
	public void setMotsCles(String motsCles) {
276
	public void setMotsCles(String motsCles) {
257
		this.motsCles = motsCles;
277
		this.motsCles = motsCles;
258
	}
278
	}
259
	
279
	
260
	public void setNumeroOrdre(String numeroOrdre) {
280
	public void setNumeroOrdre(String numeroOrdre) {
261
		this.numeroOrdre = numeroOrdre;
281
		this.numeroOrdre = numeroOrdre;
262
	}
282
	}
-
 
283
	
-
 
284
	public void setCoordonneeX(String x) {
-
 
285
		this.coordonneeX = x;
-
 
286
	}
-
 
287
	
-
 
288
	public void setCoordonneeY(String y) {
-
 
289
		this.coordonneeY = y;
-
 
290
	}
-
 
291
	
-
 
292
	public void setReferentielGeo(String refGeo) {
-
 
293
		this.referentielGeo = refGeo;
-
 
294
	}
-
 
295
	
-
 
296
	public void setSystemeCoordonnees(String systemeCoordonnees) {
-
 
297
		this.systemeCoordonnees = systemeCoordonnees;
-
 
298
	}
263
 
299
 
264
 
300
 
265
}
301
}