Subversion Repositories eFlore/Applications.cel

Rev

Rev 649 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
91 jpm 1
package org.tela_botanica.client.modeles;
2
 
3
import com.google.gwt.user.client.Window;
4
 
5
/**
6
 *
7
 * Classe representant une entite geographique (localite, commune, lieu dit) presente dans la liste des observations
8
 *
9
 */
10
 
11
public class DateObservation {
12
 
13
 
14
 
15
	private String annee=null;
16
	private String mois=null;
17
	private String jour=null;
18
 
19
 
20
 
21
 
22
	public DateObservation() {
23
		// TODO Auto-generated constructor stub
24
	}
25
 
26
 
27
	/**
28
	 * @param commune
29
	 * @param departement
30
	 */
31
 
32
	public DateObservation(String date) {
33
 
34
		String dateTab[] = date.split(" ") ;
35
		String dateSpl[] = dateTab[0].split("-") ;
36
 
37
		annee= dateSpl[0];
38
		mois= dateSpl[1];
39
		jour= dateSpl[2];
40
 
41
	}
42
 
43
 
44
 
45
	public String getAnnee() {
46
		return annee;
47
	}
48
 
49
 
50
	public String getMois() {
51
		return mois;
52
	}
53
 
54
 
55
	public String getJour() {
56
		return jour;
57
	}
58
 
59
}