New file |
0,0 → 1,43 |
package org.tela_botanica.client.modeles.objets; |
|
/** |
* |
* Classe representant une entite geographique (localite, commune, lieu dit) presente dans la liste des observations |
* |
*/ |
|
public class DateObservation { |
|
private String annee=null; |
private String mois=null; |
private String jour=null; |
|
/** |
* @param commune |
* @param departement |
*/ |
public DateObservation(String date) { |
|
String dateTab[] = date.split(" ") ; |
String dateSpl[] = dateTab[0].split("-") ; |
|
annee= dateSpl[0]; |
mois= dateSpl[1]; |
jour= dateSpl[2]; |
|
} |
|
public String getAnnee() { |
return annee; |
} |
|
|
public String getMois() { |
return mois; |
} |
|
|
public String getJour() { |
return jour; |
} |
} |