Subversion Repositories eFlore/Applications.coel

Rev

Rev 831 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 831 Rev 948
Line 12... Line 12...
12
	
12
	
Line 13... Line 13...
13
	public UniteRangement() {
13
	public UniteRangement() {
Line 14... Line 14...
14
		
14
		
-
 
15
	}
15
	}
16
	
16
	
17
	public UniteRangement(String id, String type, int nombre, String precision, String format) {
17
	public UniteRangement(String type, int nombre, String precision, String format) {
18
		setId(id);
18
		setType(type);
19
		setType(type);
19
		setNombre(nombre);
20
		setNombre(nombre);
20
		setPrecision(precision);
21
		setPrecision(precision);
Line -... Line 22...
-
 
22
		setFormat(format);
-
 
23
		setTypeAutre(false);
-
 
24
	}
-
 
25
	
-
 
26
	public String getId() {
-
 
27
		return renvoyerValeurCorrecte((String) get("id"));
-
 
28
	}
21
		setFormat(format);
29
	public void setId(String id) {
22
		setTypeAutre(false);
30
		set("id", id);
23
	}
31
	}
24
	
32
	
25
	public String getType() {
33
	public String getType() {
26
		return renvoyerValeurCorrecte((String) get("type"));
34
		return renvoyerValeurCorrecte((String) get("type"));
Line 27... Line 35...
27
	}
35
	}
-
 
36
	public void setType(String type) {
-
 
37
		set("type", type);
-
 
38
	}
28
	public void setType(String type) {
39
 
29
		set("type", type);
40
	public double getNombre() {
30
	}
41
		if (get("nombre") == null) {
31
 
42
			return new Double(0);
32
	public String getNombre() {
43
		}
Line 33... Line 44...
33
		return get("nombre");
44
		return get("nombre");
34
	}
45
	}