Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 1296 Rev 1339
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 47... Line 48...
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
	{		
-
 
53
		Map<String, Object> a = model.getProperties();
-
 
54
 
52
		this.set("id_valeur", model.get("cmlv_id_valeur"));
55
		Set<String> cles = a.keySet();
-
 
56
		Iterator<String> it = cles.iterator();
-
 
57
		while (it.hasNext()) {
-
 
58
			String cle = it.next();			
53
		this.set("nom", model.get("cmlv_nom"));
59
			if (a.get(cle) != null) {
54
		this.set("abreviation", model.get("cmlv_abreviation"));
60
				String cleObjet = cle.replaceFirst("^"+getPrefixe()+"_", "");
-
 
61
				this.set(cleObjet, a.get(cle));
-
 
62
			}
55
		this.set("description", model.get("cmlv_description"));
63
		}
Line 56... Line 64...
56
	}
64
	}
57
	
65
	
58
	@Override
66
	@Override