Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 2693 Rev 2734
Line 478... Line 478...
478
				if ((noms=reponse.get(i).isArray()) != null) {
478
				if ((noms=reponse.get(i).isArray()) != null) {
479
					String nom = ((JSONString) noms.get(0)).stringValue();
479
					String nom = ((JSONString) noms.get(0)).stringValue();
480
					String numeroNom = ((JSONString) noms.get(1)).stringValue();
480
					String numeroNom = ((JSONString) noms.get(1)).stringValue();
481
					String statut= ((JSONString) noms.get(2)).stringValue();
481
					String statut= ((JSONString) noms.get(2)).stringValue();
482
					ReferentielNom nomScientifique = new ReferentielNom(nom, numeroNom, statut);
482
					ReferentielNom nomScientifique = new ReferentielNom(nom, numeroNom, statut);
483
					// FIXME : et si le numero de nom n'est pas unique ? (cas de multirefrentiel....)					
483
					// clef améliorée : permet de désambiguiser les noms identiques
-
 
484
					// (ex: Scilla bifolia)
484
					referentielNomData.put(nomScientifique.getNom(),nomScientifique);								
485
					referentielNomData.put(numeroNom + "|" + nom, nomScientifique);
485
				}
486
				}
486
			}
487
			}
487
		} else {	
488
		} else {	
488
			referentielNomData = new HashMap<String, ReferentielNom>(0);
489
			referentielNomData = new HashMap<String, ReferentielNom>(0);
489
		}
490
		}