Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 1327 Rev 1339
Line 1... Line 1...
1
package org.tela_botanica.client.modeles.projet;
1
package org.tela_botanica.client.modeles.projet;
Line -... Line 2...
-
 
2
 
-
 
3
import java.util.Iterator;
-
 
4
import java.util.Map;
-
 
5
import java.util.Set;
2
 
6
 
Line 3... Line 7...
3
import org.tela_botanica.client.modeles.aDonnee;
7
import org.tela_botanica.client.modeles.aDonnee;
4
 
8
 
Line 18... Line 22...
18
		initialiserModele(liste);
22
		initialiserModele(liste);
19
	}
23
	}
Line 20... Line 24...
20
	
24
	
21
	public Projet(ModelData model)
25
	public Projet(ModelData model)
22
	{		
26
	{		
-
 
27
		Map<String, Object> a = model.getProperties();
-
 
28
 
-
 
29
		Set<String> cles = a.keySet();
-
 
30
		Iterator<String> it = cles.iterator();
-
 
31
		while (it.hasNext()) {
-
 
32
			String cle = it.next();			
-
 
33
			if (a.get(cle) != null) {
23
		this.set("id_projet", model.get("cpr_id_projet"));
34
				String cleObjet = cle.replaceFirst("^"+getPrefixe()+"_", "");
-
 
35
				this.set(cleObjet, a.get(cle));
-
 
36
			}
24
		this.set("nom", model.get("cpr_nom"));
37
		}
Line 25... Line 38...
25
	}
38
	}
26
	
39
	
27
	@Override
40
	@Override