Subversion Repositories eFlore/Applications.cel

Rev

Rev 91 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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