Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 1329 Rev 1369
Line 1... Line 1...
1
package org.tela_botanica.client.modeles;
1
package org.tela_botanica.client.modeles;
Line 2... Line 2...
2
 
2
 
-
 
3
import java.util.Iterator;
3
import java.util.Iterator;
4
import java.util.Map;
Line 4... Line 5...
4
import java.util.Set;
5
import java.util.Set;
Line 5... Line 6...
5
 
6
 
Line 46... Line 47...
46
		this.set("abreviation", abr);
47
		this.set("abreviation", abr);
47
		this.set("description", description);
48
		this.set("description", description);
48
	}
49
	}
Line 49... Line 50...
49
 
50
 
50
	public Valeur(ModelData model)
51
	public Valeur(ModelData model)
51
	{
-
 
52
		this.set("id_valeur", model.get("cmlv_id_valeur"));
-
 
53
		this.set("nom", model.get("cmlv_nom"));
-
 
54
		this.set("abreviation", model.get("cmlv_abreviation"));
52
	{		
55
		this.set("description", model.get("cmlv_description"));
-
 
Line -... Line 53...
-
 
53
		Map<String, Object> a = model.getProperties();
-
 
54
 
-
 
55
		Set<String> cles = a.keySet();
-
 
56
		Iterator<String> it = cles.iterator();
-
 
57
		while (it.hasNext()) {
-
 
58
			String cle = it.next();			
-
 
59
			if (a.get(cle) != null) {
-
 
60
				String cleObjet = cle.replaceFirst("^"+getPrefixe()+"_", "");
-
 
61
				this.set(cleObjet, a.get(cle));
-
 
62
			}
-
 
63
		}
56
	}
64
	}
57
 
65
	
58
	@Override
66
	@Override
59
	protected String getPrefixe() {
67
	protected String getPrefixe() {