Subversion Repositories eFlore/Applications.cel

Rev

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

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