1,5 → 1,8 |
package org.tela_botanica.client.modeles.objets; |
|
import java.util.List; |
import java.util.Map; |
|
import org.tela_botanica.client.util.Util; |
|
import com.google.gwt.json.client.JSONObject; |
27,8 → 30,13 |
private String latitude=null; |
private String longitude=null; |
private String referentielGeo=null; |
private String referentielTaxo=null; |
private String abondance=null; |
private String certitude=null; |
private String phenologie=null; |
private String altitude=null; |
|
private Map<String, String> champsEtendus=null; |
|
public Observation() { |
} |
106,6 → 114,8 |
this.motsCles = Util.getValeurJsonOuVide(observation,"mots_cles"); |
this.abondance = Util.getValeurJsonOuVide(observation,"abondance"); |
this.certitude = Util.getValeurJsonOuVide(observation,"certitude"); |
this.phenologie = Util.getValeurJsonOuVide(observation,"phenologie"); |
this.setReferentielTaxo(Util.getValeurJsonOuVide(observation,"nom_referentiel")); |
} |
|
/** |
287,4 → 297,60 |
public void setCertitude(String certitude) { |
this.certitude = certitude; |
} |
|
public String getReferentielTaxo() { |
return referentielTaxo; |
} |
|
public String getCodeCourtReferentielTaxo() { |
String codeRef = ""; |
if(!getReferentielTaxo().equals("") && getReferentielTaxo().length() >= 5) { |
codeRef = referentielTaxo.substring(0, 5); |
} |
return codeRef; |
} |
|
public void setReferentielTaxo(String referentielTaxo) { |
this.referentielTaxo = referentielTaxo; |
} |
|
public String getPhenologie() { |
return phenologie; |
} |
|
public void setPhenologie(String phenologie) { |
this.phenologie = phenologie; |
} |
|
public String getAltitude() { |
return altitude; |
} |
|
|
public void setAltitude(String altitude) { |
this.altitude = altitude; |
} |
|
|
public void setValeurChampEtendu(String cle, String valeur) { |
champsEtendus.put(cle, valeur); |
} |
|
public String getValeurChampEtendu(String cle) { |
String valeur = ""; |
if(champsEtendus.containsKey(cle)) { |
valeur = champsEtendus.get(cle); |
} |
|
return valeur; |
} |
|
public Map<String, String> getChampsEtendus() { |
return champsEtendus; |
} |
|
|
public void setChampsEtendus(Map<String, String> champsEtendus) { |
this.champsEtendus = champsEtendus; |
} |
} |