Line 37... |
Line 37... |
37 |
// Si elle est associée à une valeur, nous l'ajoutons
|
37 |
// Si elle est associée à une valeur, nous l'ajoutons
|
38 |
String cle = it.next();
|
38 |
String cle = it.next();
|
39 |
// Suppression de l'abréviation du champ. Inutile dans le contexte d'un objet
|
39 |
// Suppression de l'abréviation du champ. Inutile dans le contexte d'un objet
|
40 |
String cleObjet = cle.replaceFirst("^"+Structure.PREFIXE+"_", "");
|
40 |
String cleObjet = cle.replaceFirst("^"+Structure.PREFIXE+"_", "");
|
41 |
// Sinon, nous ajoutons la clé avec une valeur vide
|
41 |
// Sinon, nous ajoutons la clé avec une valeur vide
|
42 |
String valeur = " ";
|
42 |
String valeur = "";
|
43 |
if (institution.get(cle).isString() != null) {
|
43 |
if (institution.get(cle).isString() != null) {
|
44 |
valeur = institution.get(cle).isString().stringValue();
|
44 |
valeur = institution.get(cle).isString().stringValue();
|
45 |
}
|
45 |
}
|
46 |
if (cleObjet.equals("truk_url")) {
|
46 |
if (cleObjet.equals("truk_url")) {
|
47 |
this.setUrl(valeur);
|
47 |
this.setUrl(valeur);
|
Line 137... |
Line 137... |
137 |
return (String) renvoyerValeurCorrecte("date_fondation");
|
137 |
return (String) renvoyerValeurCorrecte("date_fondation");
|
138 |
}
|
138 |
}
|
139 |
public Date getDateFondation() {
|
139 |
public Date getDateFondation() {
|
140 |
Date fondationDate = null;
|
140 |
Date fondationDate = null;
|
141 |
String fondationChaine = (String) renvoyerValeurCorrecte("date_fondation");
|
141 |
String fondationChaine = (String) renvoyerValeurCorrecte("date_fondation");
|
142 |
if (!fondationChaine.equals(" ")) {
|
142 |
if (!fondationChaine.isEmpty()) {
|
143 |
fondationDate = DateTimeFormat.getFormat("yyyy-MM-dd HH:mm:ss").parseStrict(fondationChaine);
|
143 |
fondationDate = DateTimeFormat.getFormat("yyyy-MM-dd HH:mm:ss").parseStrict(fondationChaine);
|
144 |
}
|
144 |
}
|
145 |
return fondationDate;
|
145 |
return fondationDate;
|
146 |
}
|
146 |
}
|
147 |
public void setDateFondation(Date dateFondation) {
|
147 |
public void setDateFondation(Date dateFondation) {
|