Subversion Repositories eFlore/Applications.coel

Rev

Rev 1925 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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