Subversion Repositories eFlore/Applications.coel

Rev

Rev 69 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 69 Rev 119
Line 4... Line 4...
4
import java.util.Set;
4
import java.util.Set;
Line 5... Line 5...
5
 
5
 
Line 6... Line 6...
6
import com.google.gwt.json.client.JSONObject;
6
import com.google.gwt.json.client.JSONObject;
7
 
7
 
-
 
8
public class Structure extends aDonnee {
-
 
9
	
8
public class Structure extends aDonnee {
10
	public static final String PREFIXE = "cs";
9
 
11
	
10
	/**
12
	/**
11
	 * Constructeur vide
13
	 * Constructeur vide
12
	 * 
14
	 * 
Line 27... Line 29...
27
		// Parcourt pour chaque clé
29
		// Parcourt pour chaque clé
28
		for (Iterator<String> it = im.iterator(); it.hasNext();) {
30
		for (Iterator<String> it = im.iterator(); it.hasNext();) {
29
			// Si elle est associée à une valeur, nous l'ajoutons
31
			// Si elle est associée à une valeur, nous l'ajoutons
30
			String cle = it.next();
32
			String cle = it.next();
31
			// Suppression de l'abréviation du champ. Inutile dans le contexte d'un objet
33
			// Suppression de l'abréviation du champ. Inutile dans le contexte d'un objet
32
			String cleObjet = cle.replaceFirst("^cs_", "");
34
			String cleObjet = cle.replaceFirst("^"+Structure.PREFIXE+"_", "");
33
			if (institution.get(cle).isString() != null) {
35
			if (institution.get(cle).isString() != null) {
34
				String valeur = institution.get(cle).isString().stringValue();
36
				String valeur = institution.get(cle).isString().stringValue();
35
				this.set(cleObjet, valeur);
37
				this.set(cleObjet, valeur);
36
			} else {
38
			} else {
37
				// Sinon, nous ajoutons la clé avec une valeur vide
39
				// Sinon, nous ajoutons la clé avec une valeur vide
Line 42... Line 44...
42
	}
44
	}
Line 43... Line 45...
43
	
45
	
44
	public String getId() {
46
	public String getId() {
45
		return (String) renvoyerValeurCorrecte("id_structure");
47
		return (String) renvoyerValeurCorrecte("id_structure");
-
 
48
	}
-
 
49
	public void setId(String idStructure) {
-
 
50
		this.set("id_structure", idStructure);
-
 
51
	}
-
 
52
	
-
 
53
	public String getIdProjet() {
-
 
54
		return (String) renvoyerValeurCorrecte("ce_projet");
-
 
55
	}
-
 
56
	public void setIdProjet(String idProjet) {
-
 
57
		this.set("ce_projet", idProjet);
-
 
58
	}
-
 
59
	
-
 
60
	public String getIdMere() {
-
 
61
		return (String) renvoyerValeurCorrecte("ce_mere");
-
 
62
	}
-
 
63
	public void setIdMere(String idMere) {
-
 
64
		this.set("ce_mere", idMere);
-
 
65
	}
-
 
66
	
-
 
67
	public String getGuid() {
-
 
68
		return (String) renvoyerValeurCorrecte("guid");
-
 
69
	}
-
 
70
	public void setGuid(String guid) {
-
 
71
		this.set("guid", guid);
-
 
72
	}
-
 
73
	
-
 
74
	public String getIdAlternatif() {
-
 
75
		return (String) renvoyerValeurCorrecte("truk_identifiant_alternatif");
-
 
76
	}
-
 
77
	public void setIdAlternatif(String idAlter) {
-
 
78
		this.set("truk_identifiant_alternatif", idAlter);
Line 46... Line 79...
46
	}
79
	}
47
	
80
	
48
	public String getNom() {
81
	public String getNom() {
-
 
82
		return (String) renvoyerValeurCorrecte("nom");
-
 
83
	}
-
 
84
	public void setNom(String nom) {
-
 
85
		this.set("nom", nom);
-
 
86
	}
-
 
87
	
-
 
88
	public String getNomAlternatif() {
Line 49... Line 89...
49
		return (String) renvoyerValeurCorrecte("nom");
89
		return (String) renvoyerValeurCorrecte("truk_nom_alternatif");
50
	}
90
	}
51
	
91
	
Line -... Line 92...
-
 
92
	public String getDescription() {
-
 
93
		return (String) renvoyerValeurCorrecte("description");
-
 
94
	}
-
 
95
	
-
 
96
	public String getType() {
-
 
97
		return (String) renvoyerValeurCorrecte("ce_type");
-
 
98
	}
-
 
99
	public void setType(String type) {
-
 
100
		this.set("ce_type", type);
-
 
101
	}
-
 
102
	
-
 
103
	public String getTypePrive() {
-
 
104
		return (String) renvoyerValeurCorrecte("ce_truk_type_prive");
-
 
105
	}
-
 
106
	public void setTypePrive(String typePrive) {
-
 
107
		this.set("ce_truk_type_prive", typePrive);
-
 
108
	}
-
 
109
	
-
 
110
	public String getTypePublic() {
-
 
111
		return (String) renvoyerValeurCorrecte("ce_truk_type_public");
-
 
112
	}
52
	public String getDescription() {
113
	public void setTypePublic(String typePublic) {
53
		return (String) renvoyerValeurCorrecte("description");
114
		this.set("ce_truk_type_public", typePublic);
54
	}
115
	}
-
 
116
	
-
 
117
	public String getAdresse() {
-
 
118
		return (String) renvoyerValeurCorrecte("adresse_01");
-
 
119
	}
-
 
120
	public void setAdresse(String adr) {
-
 
121
		this.set("adresse_01", adr);
-
 
122
	}
Line -... Line 123...
-
 
123
	
-
 
124
	public String getAdresseComplement() {
-
 
125
		return (String) renvoyerValeurCorrecte("adresse_02");
-
 
126
	}
-
 
127
 
-
 
128
	public String getDateFondation() {
-
 
129
		return (String) renvoyerValeurCorrecte("date_fondation");
55
	
130
	}
56
	public String getAdresse01() {
131
	public void setDateFondation(String dateFondation) {
57
		return (String) renvoyerValeurCorrecte("adresse_01");
132
		this.set("date_fondation", dateFondation);
-
 
133
	}
-
 
134
	
-
 
135
	public String getCodePostal() {
58
	}
136
		return (String) renvoyerValeurCorrecte("code_postal");
59
 
137
	}
60
	public String getCodePostal() {
138
	public void setCodePostal(String codePostal) {
61
		return (String) renvoyerValeurCorrecte("code_postal");
139
		this.set("code_postal", codePostal);
-
 
140
	}
-
 
141
	
-
 
142
	public String getVille() {
62
	}
143
		return (String) renvoyerValeurCorrecte("ville");
63
 
144
	}
64
	public String getVille() {
145
	public void setVille(String ville) {
65
		return (String) renvoyerValeurCorrecte("ville");
146
		this.set("ville", ville);
-
 
147
	}
-
 
148
	
-
 
149
	public String getRegion() {
66
	}
150
		return (String) renvoyerValeurCorrecte("region");
67
 
151
	}
68
	public String getRegion() {
152
	public void setRegion(String region) {
69
		return (String) renvoyerValeurCorrecte("region");
153
		this.set("region", region);
-
 
154
	}
-
 
155
	
-
 
156
	public String getPays() {
-
 
157
		return (String) renvoyerValeurCorrecte("pays");
-
 
158
	}
-
 
159
	public void setPays(String pays) {
-
 
160
		this.set("pays", pays);
-
 
161
	}
-
 
162
	
-
 
163
	public String getLatitude() {
-
 
164
		return (String) renvoyerValeurCorrecte("latitude");
Line 70... Line 165...
70
	}
165
	}
71
 
166
 
72
	public String getPays() {
167
	public String getLongitude() {
-
 
168
		return (String) renvoyerValeurCorrecte("longitude");
-
 
169
	}
-
 
170
	
Line 73... Line 171...
73
		return (String) renvoyerValeurCorrecte("pays");
171
	public String getTelephone() {
74
	}
172
		return (String) renvoyerValeurCorrecte("telephone");
75
	
173
	}
-
 
174
	public void setTelephone(String tel) {
-
 
175
		this.set("telephone", tel);
-
 
176
	}
Line 76... Line 177...
76
	public String getTelephone() {
177
	
77
		return (String) renvoyerValeurCorrecte("telephone");
178
	public String getFax() {
78
	}
179
		return (String) renvoyerValeurCorrecte("fax");
-
 
180
	}
-
 
181
	public void setFax(String fax) {
-
 
182
		this.set("fax", fax);
-
 
183
	}
-
 
184
	
-
 
185
	public String getCourriel() {
-
 
186
		return (String) renvoyerValeurCorrecte("courriel");
-
 
187
	}
-
 
188
	public void setCourriel(String courriel) {
-
 
189
		this.set("courriel", courriel);
-
 
190
	}
-
 
191
	
-
 
192
	public String getUrl() {
-
 
193
		return (String) renvoyerValeurCorrecte("truk_url");
-
 
194
	}
-
 
195
	public void setUrl(String url) {
-
 
196
		this.set("truk_url", url);
Line 79... Line 197...
79
	
197
	}
80
	public String getFax() {
198
	
81
		return (String) renvoyerValeurCorrecte("fax");
199
	public String getNbrePersonne() {
-
 
200
		return (String) renvoyerValeurCorrecte("nbre_personne");
-
 
201
	}
-
 
202
	public void setNbrePersonne(String nbrePersonne) {
-
 
203
		this.set("nbre_personne", nbrePersonne);
-
 
204
	}
82
	}
205
	
83
	
206
	public String getConditionAcces() {