Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 1784 Rev 1925
1
package org.tela_botanica.client.modeles.collection;
1
package org.tela_botanica.client.modeles.collection;
2
 
2
 
3
import java.util.Iterator;
3
import java.util.Iterator;
4
import java.util.LinkedList;
-
 
5
import java.util.List;
-
 
6
import java.util.Map;
4
import java.util.Map;
7
import java.util.Set;
5
import java.util.Set;
8
 
6
 
9
import org.tela_botanica.client.modeles.aDonnee;
7
import org.tela_botanica.client.modeles.aDonnee;
10
import org.tela_botanica.client.util.Debug;
-
 
11
 
8
 
12
import com.extjs.gxt.ui.client.data.ModelData;
9
import com.extjs.gxt.ui.client.data.ModelData;
13
import com.google.gwt.json.client.JSONObject;
10
import com.google.gwt.json.client.JSONObject;
14
 
11
 
15
public class Collection extends aDonnee {
12
public class Collection extends aDonnee {
16
	
13
	
17
	private static final long serialVersionUID = 3295310312337145716L;
14
	private static final long serialVersionUID = 3295310312337145716L;
18
	
15
	
19
	public static final String PREFIXE = "cc";
16
	public static final String PREFIXE = "cc";
20
	private CollectionBotanique botanique = null;
17
	private CollectionBotanique botanique = null;
21
	private CollectionAPersonneListe personnesLiees = null;
18
	private CollectionAPersonneListe personnesLiees = null;
22
	private CollectionAPublicationListe publicationsLiees = null;
19
	private CollectionAPublicationListe publicationsLiees = null;
23
	private CollectionACommentaireListe commentairesLiees = null;
20
	private CollectionACommentaireListe commentairesLiees = null;
24
	public static String[] champsObligatoires = {"cc_id_collection","cc_ce_type"};
21
	public static String[] champsObligatoires = {"cc_id_collection","cc_ce_type"};
25
	
22
	
26
	public Collection() {
23
	public Collection() {
27
	}
24
	}
28
	
25
	
29
	public Collection(ModelData model)
26
	public Collection(ModelData model)
30
	{		
27
	{		
31
		Map<String, Object> a = model.getProperties();
28
		Map<String, Object> a = model.getProperties();
32
 
29
 
33
		Set<String> cles = a.keySet();
30
		Set<String> cles = a.keySet();
34
		Iterator<String> it = cles.iterator();
31
		Iterator<String> it = cles.iterator();
35
		while (it.hasNext()) {
32
		while (it.hasNext()) {
36
			String cle = it.next();			
33
			String cle = it.next();			
37
			if (a.get(cle) != null) {
34
			if (a.get(cle) != null) {
38
				String cleObjet = cle.replaceFirst("^"+getPrefixe()+"_", "");
35
				String cleObjet = cle.replaceFirst("^"+getPrefixe()+"_", "");
39
				this.set(cleObjet, a.get(cle));
36
				this.set(cleObjet, a.get(cle));
40
			}
37
			}
41
		}
38
		}
42
	}
39
	}
43
	
40
	
44
	public Collection(JSONObject collection){
41
	public Collection(JSONObject collection){
45
		initialiserModele(collection);
42
		initialiserModele(collection);
46
	}
43
	}
47
 
44
 
48
	@Override
45
	@Override
49
	protected String getPrefixe(){
46
	protected String getPrefixe(){
50
		return PREFIXE;
47
		return PREFIXE;
51
	}
48
	}
52
	
49
	
53
	protected String[] getChampsObligatoires()	{
50
	protected String[] getChampsObligatoires()	{
54
		return champsObligatoires;
51
		return champsObligatoires;
55
	}
52
	}
56
	
53
	
57
	// BOTANIQUE
54
	// BOTANIQUE
58
	public CollectionBotanique getBotanique() {
55
	public CollectionBotanique getBotanique() {
59
		if (botanique == null) {
56
		if (botanique == null) {
60
			botanique = new CollectionBotanique();
57
			botanique = new CollectionBotanique();
61
		}
58
		}
62
		return botanique;
59
		return botanique;
63
	}
60
	}
64
	public void setBotanique(CollectionBotanique botaniqueAStocker) {
61
	public void setBotanique(CollectionBotanique botaniqueAStocker) {
65
		botanique = botaniqueAStocker;
62
		botanique = botaniqueAStocker;
66
	}
63
	}
67
	
64
	
68
	// PERSONNES LIÉES
65
	// PERSONNES LIÉES
69
	public CollectionAPersonneListe getPersonnesLiees() {
66
	public CollectionAPersonneListe getPersonnesLiees() {
70
		if (personnesLiees == null) {
67
		if (personnesLiees == null) {
71
			personnesLiees = new CollectionAPersonneListe();
68
			personnesLiees = new CollectionAPersonneListe();
72
		}
69
		}
73
		return personnesLiees;
70
		return personnesLiees;
74
	}
71
	}
75
	public void setPersonnesLiees(CollectionAPersonneListe relationsCollectionAPersonne) {
72
	public void setPersonnesLiees(CollectionAPersonneListe relationsCollectionAPersonne) {
76
		personnesLiees = relationsCollectionAPersonne;
73
		personnesLiees = relationsCollectionAPersonne;
77
	}
74
	}
78
	
75
	
79
	// PUBLICATIONS LIÉES
76
	// PUBLICATIONS LIÉES
80
	public CollectionAPublicationListe getPublicationsLiees() {
77
	public CollectionAPublicationListe getPublicationsLiees() {
81
		if (publicationsLiees == null) {
78
		if (publicationsLiees == null) {
82
			publicationsLiees = new CollectionAPublicationListe();
79
			publicationsLiees = new CollectionAPublicationListe();
83
		}
80
		}
84
		return publicationsLiees;
81
		return publicationsLiees;
85
	}
82
	}
86
	public void setPublicationsLiees(CollectionAPublicationListe relationsCollectionAPublication) {
83
	public void setPublicationsLiees(CollectionAPublicationListe relationsCollectionAPublication) {
87
		publicationsLiees = relationsCollectionAPublication;
84
		publicationsLiees = relationsCollectionAPublication;
88
	}
85
	}
89
	
86
	
90
	// COMMENTAIRES LIÉS
87
	// COMMENTAIRES LIÉS
91
	public CollectionACommentaireListe getCommentairesLiees() {
88
	public CollectionACommentaireListe getCommentairesLiees() {
92
		if (commentairesLiees == null) {
89
		if (commentairesLiees == null) {
93
			commentairesLiees = new CollectionACommentaireListe();
90
			commentairesLiees = new CollectionACommentaireListe();
94
		}
91
		}
95
		return commentairesLiees;
92
		return commentairesLiees;
96
	}
93
	}
97
	public void setCommentairesLiees(CollectionACommentaireListe relationsCollectionACommentaire) {
94
	public void setCommentairesLiees(CollectionACommentaireListe relationsCollectionACommentaire) {
98
		commentairesLiees = relationsCollectionACommentaire;
95
		commentairesLiees = relationsCollectionACommentaire;
99
	}
96
	}
100
	
97
	
101
	// ID
98
	// ID
102
	public String getId() {
99
	public String getId() {
103
		return renvoyerValeurCorrecte("id_collection");
100
		return renvoyerValeurCorrecte("id_collection");
104
	}
101
	}
105
	public void setId(String idCollection) {
102
	public void setId(String idCollection) {
106
		this.set("id_collection", idCollection);
103
		this.set("id_collection", idCollection);
107
	}
104
	}
108
	
105
	
109
	// COLLECTION MERE ID
106
	// COLLECTION MERE ID
110
	public String getCollectionMereId() {
107
	public String getCollectionMereId() {
111
		return renvoyerValeurCorrecte("ce_mere");
108
		return renvoyerValeurCorrecte("ce_mere");
112
	}
109
	}
113
	public void setCollectionMereId(String collectionMereId) {
110
	public void setCollectionMereId(String collectionMereId) {
114
		this.set("ce_mere", collectionMereId);
111
		this.set("ce_mere", collectionMereId);
115
	}
112
	}
116
	
113
	
117
	// COLLECTION MERE NOM
114
	// COLLECTION MERE NOM
118
	public String getCollectionMereNom() {
115
	public String getCollectionMereNom() {
119
		return renvoyerValeurCorrecte("_collection_mere_nom_");
116
		return renvoyerValeurCorrecte("_collection_mere_nom_");
120
	}
117
	}
121
	public void setCollectionMereNom(String collectionMereNom) {
118
	public void setCollectionMereNom(String collectionMereNom) {
122
		this.set("_collection_mere_nom_", collectionMereNom);
119
		this.set("_collection_mere_nom_", collectionMereNom);
123
	}
120
	}
124
	
121
	
125
	// CE STRUCTURE
122
	// CE STRUCTURE
126
	public String getIdStructure() {
123
	public String getIdStructure() {
127
		return renvoyerValeurCorrecte("ce_structure");
124
		return renvoyerValeurCorrecte("ce_structure");
128
	}
125
	}
129
	public void setIdStructure(String idStructure) {
126
	public void setIdStructure(String idStructure) {
130
		this.set("ce_structure", idStructure);
127
		this.set("ce_structure", idStructure);
131
	}
128
	}
132
 
129
 
133
	// GUID
130
	// GUID
134
	public String getGuid() {
131
	public String getGuid() {
135
		return renvoyerValeurCorrecte("guid");
132
		return renvoyerValeurCorrecte("guid");
136
	}
133
	}
137
	public void setGuid(String guid) {
134
	public void setGuid(String guid) {
138
		this.set("guid", guid);
135
		this.set("guid", guid);
139
	}
136
	}
140
	
137
	
141
	// CODE
138
	// CODE
142
	public String getCode() {
139
	public String getCode() {
143
		return renvoyerValeurCorrecte("truk_code");
140
		return renvoyerValeurCorrecte("truk_code");
144
	}
141
	}
145
	public void setCode(String code) {
142
	public void setCode(String code) {
146
		this.set("truk_code", code);
143
		this.set("truk_code", code);
147
	}
144
	}
148
	
145
	
149
	// NOM
146
	// NOM
150
	public String getNom() {
147
	public String getNom() {
151
		return renvoyerValeurCorrecte("nom");
148
		return renvoyerValeurCorrecte("nom");
152
	}
149
	}
153
	public void setNom(String nom) {
150
	public void setNom(String nom) {
154
		this.set("nom", nom);
151
		this.set("nom", nom);
155
	}
152
	}
156
	
153
	
157
	// NOM ALTERNATIF
154
	// NOM ALTERNATIF
158
	public String getNomAlternatif() {
155
	public String getNomAlternatif() {
159
		return renvoyerValeurCorrecte("truk_nom_alternatif");
156
		return renvoyerValeurCorrecte("truk_nom_alternatif");
160
	}
157
	}
161
	public void setNomAlternatif(String nomAlter) {
158
	public void setNomAlternatif(String nomAlter) {
162
		this.set("truk_nom_alternatif", nomAlter);
159
		this.set("truk_nom_alternatif", nomAlter);
163
	}
160
	}
164
	
161
	
165
	// DESCRIPTION
162
	// DESCRIPTION
166
	public String getDescription() {
163
	public String getDescription() {
167
		return renvoyerValeurCorrecte("description");
164
		return renvoyerValeurCorrecte("description");
168
	}
165
	}
169
	public void setDescription(String description) {
166
	public void setDescription(String description) {
170
		this.set("description", description);
167
		this.set("description", description);
171
	}
168
	}
172
	
169
	
173
	// HISTORIQUE
170
	// HISTORIQUE
174
	public String getHistorique() {
171
	public String getHistorique() {
175
		return renvoyerValeurCorrecte("historique");
172
		return renvoyerValeurCorrecte("historique");
176
	}
173
	}
177
	public void setHistorique(String historique) {
174
	public void setHistorique(String historique) {
178
		this.set("historique", historique);
175
		this.set("historique", historique);
179
	}
176
	}
180
 
177
 
181
	// URL
178
	// URL
182
	public String getUrls() {
179
	public String getUrls() {
183
		return renvoyerValeurCorrecte("truk_url");
180
		return renvoyerValeurCorrecte("truk_url");
184
	}
181
	}
185
	public void setUrls(String urls) {
182
	public void setUrls(String urls) {
186
		this.set("truk_url", urls);
183
		this.set("truk_url", urls);
187
	}
184
	}
188
	
185
	
189
	// TYPE NCD
186
	// TYPE NCD
190
	public String getTypeNcd() {
187
	public String getTypeNcd() {
191
		return renvoyerValeurCorrecte("ce_type");
188
		return renvoyerValeurCorrecte("ce_type");
192
	}
189
	}
193
	public void setTypeNcd(String typeNcd) {
190
	public void setTypeNcd(String typeNcd) {
194
		this.set("ce_type", typeNcd);
191
		this.set("ce_type", typeNcd);
195
	}
192
	}
196
	
193
	
197
	// TYPE DEPOT
194
	// TYPE DEPOT
198
	public String getTypeDepot() {
195
	public String getTypeDepot() {
199
		return renvoyerValeurCorrecte("ce_type_depot");
196
		return renvoyerValeurCorrecte("ce_type_depot");
200
	}
197
	}
201
	public void setTypeDepot(String typeDepot) {
198
	public void setTypeDepot(String typeDepot) {
202
		this.set("ce_type_depot", typeDepot);
199
		this.set("ce_type_depot", typeDepot);
203
	}
200
	}
204
	
201
	
205
	// COTE
202
	// COTE
206
	public String getCote() {
203
	public String getCote() {
207
		return renvoyerValeurCorrecte("cote");
204
		return renvoyerValeurCorrecte("cote");
208
	}
205
	}
209
	public void setCote(String cote) {
206
	public void setCote(String cote) {
210
		this.set("cote", cote);
207
		this.set("cote", cote);
211
	}
208
	}
212
	
209
	
213
	// DIMENSSION
210
	// DIMENSSION
214
	public String getDimenssion() {
211
	public String getDimenssion() {
215
		return renvoyerValeurCorrecte("dimenssion");
212
		return renvoyerValeurCorrecte("dimenssion");
216
	}
213
	}
217
	public void setDimenssion(String dimenssion) {
214
	public void setDimenssion(String dimenssion) {
218
		this.set("dimenssion", dimenssion);
215
		this.set("dimenssion", dimenssion);
219
	}
216
	}
220
	
217
	
221
	// CONDITION ACCÉS
218
	// CONDITION ACCÉS
222
	public String getConditionAcces() {
219
	public String getConditionAcces() {
223
		return renvoyerValeurCorrecte("condition_acces");
220
		return renvoyerValeurCorrecte("condition_acces");
224
	}
221
	}
225
	public void setConditionAcces(String conditionAcces) {
222
	public void setConditionAcces(String conditionAcces) {
226
		this.set("condition_acces", conditionAcces);
223
		this.set("condition_acces", conditionAcces);
227
	}
224
	}
228
	
225
	
229
	// CONDITION USAGE
226
	// CONDITION USAGE
230
	public String getConditionUsage() {
227
	public String getConditionUsage() {
231
		return renvoyerValeurCorrecte("condition_usage");
228
		return renvoyerValeurCorrecte("condition_usage");
232
	}
229
	}
233
	public void setConditionUsage(String conditionUsage) {
230
	public void setConditionUsage(String conditionUsage) {
234
		this.set("condition_usage", conditionUsage);
231
		this.set("condition_usage", conditionUsage);
235
	}
232
	}
236
	
233
	
237
	// COUVERTURE VERNACULAIRE
234
	// COUVERTURE VERNACULAIRE
238
	public String getCouvertureVernaculaire() {
235
	public String getCouvertureVernaculaire() {
239
		return renvoyerValeurCorrecte("truk_couverture_vernaculaire");
236
		return renvoyerValeurCorrecte("truk_couverture_vernaculaire");
240
	}
237
	}
241
	public void setCouvertureVernaculaire(String couvertureVernaculaire) {
238
	public void setCouvertureVernaculaire(String couvertureVernaculaire) {
242
		this.set("truk_couverture_vernaculaire", couvertureVernaculaire);
239
		this.set("truk_couverture_vernaculaire", couvertureVernaculaire);
243
	}
240
	}
244
	
241
	
245
	// COUVERTURE TAXONOMIQUE
242
	// COUVERTURE TAXONOMIQUE
246
	public String getCouvertureTaxonomique() {
243
	public String getCouvertureTaxonomique() {
247
		return renvoyerValeurCorrecte("truk_couverture_taxonomique");
244
		return renvoyerValeurCorrecte("truk_couverture_taxonomique");
248
	}
245
	}
249
	public void setCouvertureTaxonomique(String couvertureTaxonomique) {
246
	public void setCouvertureTaxonomique(String couvertureTaxonomique) {
250
		this.set("truk_couverture_taxonomique", couvertureTaxonomique);
247
		this.set("truk_couverture_taxonomique", couvertureTaxonomique);
251
	}
248
	}
252
	
249
	
253
	// COUVERTURE REGNE
250
	// COUVERTURE REGNE
254
	public String getCouvertureRegne() {
251
	public String getCouvertureRegne() {
255
		return renvoyerValeurCorrecte("truk_couverture_regne");
252
		return renvoyerValeurCorrecte("truk_couverture_regne");
256
	}
253
	}
257
	public void setCouvertureRegne(String couvertureRegne) {
254
	public void setCouvertureRegne(String couvertureRegne) {
258
		this.set("truk_couverture_regne", couvertureRegne);
255
		this.set("truk_couverture_regne", couvertureRegne);
259
	}
256
	}
260
	
257
	
261
	// COUVERTURE TEMPORELLE
258
	// COUVERTURE TEMPORELLE
262
	public String getCouvertureTemporelle() {
259
	public String getCouvertureTemporelle() {
263
		return renvoyerValeurCorrecte("truk_couverture_temporelle");
260
		return renvoyerValeurCorrecte("truk_couverture_temporelle");
264
	}
261
	}
265
	public void setCouvertureTemporelle(String couvertureTemporelle) {
262
	public void setCouvertureTemporelle(String couvertureTemporelle) {
266
		this.set("truk_couverture_temporelle", couvertureTemporelle);
263
		this.set("truk_couverture_temporelle", couvertureTemporelle);
267
	}
264
	}
268
	
265
	
269
	// COUVERTURE VIE
266
	// COUVERTURE VIE
270
	public String getCouvertureVie() {
267
	public String getCouvertureVie() {
271
		return renvoyerValeurCorrecte("truk_couverture_vie");
268
		return renvoyerValeurCorrecte("truk_couverture_vie");
272
	}
269
	}
273
	public void setCouvertureVie(String couvertureVie) {
270
	public void setCouvertureVie(String couvertureVie) {
274
		this.set("truk_couverture_Vie", couvertureVie);
271
		this.set("truk_couverture_Vie", couvertureVie);
275
	}
272
	}
276
	
273
	
277
	// CONSERVATION STATUT
274
	// CONSERVATION STATUT
278
	public String getConservationStatut() {
275
	public String getConservationStatut() {
279
		return renvoyerValeurCorrecte("truk_conservation_statut");
276
		return renvoyerValeurCorrecte("truk_conservation_statut");
280
	}
277
	}
281
	public void setConservationStatut(String conservationStatut) {
278
	public void setConservationStatut(String conservationStatut) {
282
		this.set("truk_conservation_statut", conservationStatut);
279
		this.set("truk_conservation_statut", conservationStatut);
283
	}
280
	}
284
	
281
	
285
	// PRESERVATION
282
	// PRESERVATION
286
	public String getPreservation() {
283
	public String getPreservation() {
287
		return renvoyerValeurCorrecte("truk_preservation");
284
		return renvoyerValeurCorrecte("truk_preservation");
288
	}
285
	}
289
	public void setPreservation(String preservation) {
286
	public void setPreservation(String preservation) {
290
		this.set("truk_preservation", preservation);
287
		this.set("truk_preservation", preservation);
291
	}
288
	}
292
	
289
	
293
	// DEVELOPPEMENT
290
	// DEVELOPPEMENT
294
	public String getDeveloppement() {
291
	public String getDeveloppement() {
295
		return renvoyerValeurCorrecte("ce_developpement");
292
		return renvoyerValeurCorrecte("ce_developpement");
296
	}
293
	}
297
	public void setDeveloppement(String developpement) {
294
	public void setDeveloppement(String developpement) {
298
		this.set("ce_developpement", developpement);
295
		this.set("ce_developpement", developpement);
299
	}
296
	}
300
	
297
	
301
	// PERIODE CONSTITUTION
298
	// PERIODE CONSTITUTION
302
	public String getPeriodeConstitution() {
299
	public String getPeriodeConstitutionDebut() {
303
		return renvoyerValeurCorrecte("truk_periode_constitution");
300
		return renvoyerValeurCorrecte("periode_constitution_debut");
304
	}
301
	}
305
	public void setPeriodeConstitution(String periodeConstitution) {
302
	public void setPeriodeConstitutionDebut(Integer periodeConstitution) {
306
		if (periodeConstitution.equals(new String("")))
303
		if (periodeConstitution.equals(new Integer("")))
307
			this.set("truk_periode_constitution", null);
304
			this.set("periode_constitution_debut", null);
308
		else
305
		else
-
 
306
			this.set("periode_constitution_debut", periodeConstitution);
-
 
307
	}
-
 
308
	
-
 
309
	public String getPeriodeConstitutionFin() {
-
 
310
		return renvoyerValeurCorrecte("periode_constitution_fin");
-
 
311
	}
-
 
312
	public void setPeriodeConstitutionFin(Integer periodeConstitution) {
-
 
313
		if (periodeConstitution.equals(new Integer("")))
-
 
314
			this.set("periode_constitution_fin", null);
-
 
315
		else
309
			this.set("truk_periode_constitution", periodeConstitution);
316
			this.set("periode_constitution_fin", periodeConstitution);
310
	}
317
	}
311
	
318
	
312
	// COUVERTURE LIEU
319
	// COUVERTURE LIEU
313
	public String getCouvertureLieu() {
320
	public String getCouvertureLieu() {
314
		return renvoyerValeurCorrecte("truk_couverture_lieu");
321
		return renvoyerValeurCorrecte("truk_couverture_lieu");
315
	}
322
	}
316
	public void setCouvertureLieu(String couvertureLieu) {
323
	public void setCouvertureLieu(String couvertureLieu) {
317
		this.set("truk_couverture_lieu", couvertureLieu);
324
		this.set("truk_couverture_lieu", couvertureLieu);
318
	}
325
	}
319
	
326
	
320
	// COORDONNÉE
327
	// COORDONNÉE
321
	public String getCoordonnee() {
328
	public String getCoordonnee() {
322
		return renvoyerValeurCorrecte("truk_coordonnee");
329
		return renvoyerValeurCorrecte("truk_coordonnee");
323
	}
330
	}
324
	public void setCoordonnee(String coordonnee) {
331
	public void setCoordonnee(String coordonnee) {
325
		this.set("truk_coordonnee", coordonnee);
332
		this.set("truk_coordonnee", coordonnee);
326
	}
333
	}
327
	
334
	
328
	// SPECIMEN TYPE
335
	// SPECIMEN TYPE
329
	public String getSpecimenType() {
336
	public String getSpecimenType() {
330
		return renvoyerValeurCorrecte("ce_specimen_type");
337
		return renvoyerValeurCorrecte("ce_specimen_type");
331
	}
338
	}
332
	public void setSpecimenType(String specimenType) {
339
	public void setSpecimenType(String specimenType) {
333
		this.set("ce_specimen_type", specimenType);
340
		this.set("ce_specimen_type", specimenType);
334
	}
341
	}
335
	
342
	
336
	// SPECIMEN TYPE NOMBRE
343
	// SPECIMEN TYPE NOMBRE
337
	public String getSpecimenTypeNbre() {
344
	public String getSpecimenTypeNbre() {
338
		return renvoyerValeurCorrecte("specimen_type_nbre");
345
		return renvoyerValeurCorrecte("specimen_type_nbre");
339
	}
346
	}
340
	public void setSpecimenTypeNbre(String specimenTypeNbre) {
347
	public void setSpecimenTypeNbre(String specimenTypeNbre) {
341
		this.set("specimen_type_nbre", specimenTypeNbre);
348
		this.set("specimen_type_nbre", specimenTypeNbre);
342
	}
349
	}
343
	
350
	
344
	// SPECIMEN TYPE NOMBRE PRECISION
351
	// SPECIMEN TYPE NOMBRE PRECISION
345
	public String getSpecimenTypeNbrePrecision() {
352
	public String getSpecimenTypeNbrePrecision() {
346
		return renvoyerValeurCorrecte("ce_specimen_type_nbre_precision");
353
		return renvoyerValeurCorrecte("ce_specimen_type_nbre_precision");
347
	}
354
	}
348
	public void setSpecimenTypeNbrePrecision(String specimenTypeNbrePrecision) {
355
	public void setSpecimenTypeNbrePrecision(String specimenTypeNbrePrecision) {
349
		this.set("ce_specimen_type_nbre_precision", specimenTypeNbrePrecision);
356
		this.set("ce_specimen_type_nbre_precision", specimenTypeNbrePrecision);
350
	}
357
	}
351
	
358
	
352
	// SPECIMEN TYPE CLASSEMENT
359
	// SPECIMEN TYPE CLASSEMENT
353
	public String getSpecimenTypeClassement() {
360
	public String getSpecimenTypeClassement() {
354
		return renvoyerValeurCorrecte("ce_specimen_type_classement");
361
		return renvoyerValeurCorrecte("ce_specimen_type_classement");
355
	}
362
	}
356
	public void setSpecimenTypeClassement(String specimenTypeClassement) {
363
	public void setSpecimenTypeClassement(String specimenTypeClassement) {
357
		this.set("ce_specimen_type_classement", specimenTypeClassement);
364
		this.set("ce_specimen_type_classement", specimenTypeClassement);
358
	}
365
	}
359
	
366
	
360
	// EXPEDITION NOM
367
	// EXPEDITION NOM
361
	public String getExpeditionNom() {
368
	public String getExpeditionNom() {
362
		return renvoyerValeurCorrecte("expedition_nom");
369
		return renvoyerValeurCorrecte("expedition_nom");
363
	}
370
	}
364
	public void setExpeditionNom(String expeditionNom) {
371
	public void setExpeditionNom(String expeditionNom) {
365
		this.set("expedition_nom", expeditionNom);
372
		this.set("expedition_nom", expeditionNom);
366
	}
373
	}
367
	
374
	
368
	// DIGITAL MEDIUM
375
	// DIGITAL MEDIUM
369
	public String getDigitalMedium() {
376
	public String getDigitalMedium() {
370
		return renvoyerValeurCorrecte("truk_digital_medium");
377
		return renvoyerValeurCorrecte("truk_digital_medium");
371
	}
378
	}
372
	public void setDigitalMedium(String digitalMedium) {
379
	public void setDigitalMedium(String digitalMedium) {
373
		this.set("truk_digital_medium", digitalMedium);
380
		this.set("truk_digital_medium", digitalMedium);
374
	}
381
	}
375
	
382
	
376
	// DIGITAL FORMAT
383
	// DIGITAL FORMAT
377
	public String getDigitalFormat() {
384
	public String getDigitalFormat() {
378
		return renvoyerValeurCorrecte("truk_digital_format");
385
		return renvoyerValeurCorrecte("truk_digital_format");
379
	}
386
	}
380
	public void setDigitalFormat(String digitalFormat) {
387
	public void setDigitalFormat(String digitalFormat) {
381
		this.set("truk_digital_format", digitalFormat);
388
		this.set("truk_digital_format", digitalFormat);
382
	}
389
	}
383
	
390
	
384
	// PUBLIC
391
	// PUBLIC
385
	public boolean etrePublic() {
392
	public boolean etrePublic() {
386
		String publicMark = getPublic();
393
		String publicMark = getPublic();
387
		boolean estPublic = true;
394
		boolean estPublic = true;
388
		if (publicMark.equals("0")) {
395
		if (publicMark.equals("0")) {
389
			estPublic = false;
396
			estPublic = false;
390
		}
397
		}
391
		return estPublic;
398
		return estPublic;
392
	}
399
	}
393
	public String getPublic() {
400
	public String getPublic() {
394
		return renvoyerValeurCorrecte("mark_public");
401
		return renvoyerValeurCorrecte("mark_public");
395
	}
402
	}
396
	public void setBoolPublic(String publicBool) {
403
	public void setBoolPublic(String publicBool) {
397
		this.set("mark_public", publicBool);
404
		this.set("mark_public", publicBool);
398
	}
405
	}
399
	
406
	
400
	// +--------------------------------------------------------------------------------------------------------------+
407
	// +--------------------------------------------------------------------------------------------------------------+
401
	// STRUCTURE NOM
408
	// STRUCTURE NOM
402
	public String getStructureNom() {
409
	public String getStructureNom() {
403
		return renvoyerValeurCorrecte("_structure_nom_");
410
		return renvoyerValeurCorrecte("_structure_nom_");
404
	}
411
	}
405
	
412
	
406
	// STRUCTURE VILLE
413
	// STRUCTURE VILLE
407
	public String getStructureVille() {
414
	public String getStructureVille() {
408
		return renvoyerValeurCorrecte("_structure_ville_");
415
		return renvoyerValeurCorrecte("_structure_ville_");
409
	}
416
	}
410
}
417
}