Subversion Repositories eFlore/Applications.cel

Rev

Rev 989 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 989 Rev 1332
Line 9... Line 9...
9
public class ReferentielCommune {
9
public class ReferentielCommune {
Line 10... Line 10...
10
 
10
 
11
 
11
 
-
 
12
	private String commune=null;
Line 12... Line 13...
12
	private String commune=null;
13
	private String departement=null;
13
	private String departement=null;
14
	private String codeInsee=null;
Line 14... Line -...
14
	
-
 
15
	
15
	
16
	public ReferentielCommune() {
16
	
17
	}
17
	public ReferentielCommune() {
18
 
18
	}
19
	
-
 
20
	/**
19
 
Line 21... Line 20...
21
	 * @param commune
20
	/**
-
 
21
	 * @param commune
-
 
22
	 * @param departement
22
	 * @param departement
23
	 */
23
	 */
24
	public ReferentielCommune(String commune, String code) {
-
 
25
		
24
	
26
		this.commune = commune;
25
	public ReferentielCommune(String commune, String departement) {
27
		if(code.length() == 5) {
Line 26... Line -...
26
		
-
 
27
		this.commune = commune;
-
 
28
		this.departement = departement;
28
			codeInsee = code;
29
 
29
			departement = code.substring(0,2);
30
		
30
		} else {
Line 31... Line 31...
31
	}
31
			departement = code;
32
 
32
		}
33
 
33
	}
Line 34... Line -...
34
 
-
 
-
 
34
 
-
 
35
	public String getCommune() {
35
	public String getCommune() {
36
		return commune;
Line 36... Line 37...
36
		return commune;
37
	}