Subversion Repositories eFlore/Applications.coel

Rev

Rev 1327 | Rev 1354 | Go to most recent revision | 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.structure;
1
package org.tela_botanica.client.modeles.structure;
Line 2... Line 2...
2
 
2
 
3
import java.util.Date;
3
import java.util.Date;
-
 
4
import java.util.Iterator;
4
import java.util.Iterator;
5
import java.util.Map;
Line 5... Line 6...
5
import java.util.Set;
6
import java.util.Set;
6
 
7
 
7
import org.tela_botanica.client.modeles.aDonnee;
8
import org.tela_botanica.client.modeles.aDonnee;
Line 32... Line 33...
32
		urls = new BaseModelData();
33
		urls = new BaseModelData();
33
	}
34
	}
Line 34... Line 35...
34
	
35
	
35
	public Structure(ModelData model)
36
	public Structure(ModelData model)
36
	{		
37
	{		
-
 
38
		Map<String, Object> a = model.getProperties();
-
 
39
 
-
 
40
		Set<String> cles = a.keySet();
-
 
41
		Iterator<String> it = cles.iterator();
-
 
42
		while (it.hasNext()) {
-
 
43
			String cle = it.next();			
-
 
44
			if (a.get(cle) != null) {
37
		this.set("id_structure", model.get("cs_id_structure"));
45
				String cleObjet = cle.replaceFirst("^"+getPrefixe()+"_", "");
-
 
46
				this.set(cleObjet, a.get(cle));
-
 
47
			}
38
		this.set("nom", model.get("cs_nom"));
48
		}
Line 39... Line 49...
39
	}
49
	}
40
	
50
	
41
	public Structure(JSONObject institution) {
51
	public Structure(JSONObject institution) {