Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 69 Rev 156
Line 36... Line 36...
36
	}
36
	}
37
	/**
37
	/**
38
	 * Constructeur pour une liste d'institutions
38
	 * Constructeur pour une liste d'institutions
39
	 * @param dates
39
	 * @param dates
40
	 */
40
	 */
41
	public StructureListe(JSONArray institutions) 
41
	public StructureListe(JSONArray structures) 
42
	{
42
	{
43
		super(institutions.size()) ;
43
		super(structures.size()) ;
44
		final int taillemax = institutions.size();
44
		final int taillemax = structures.size();
Line 45... Line 45...
45
		
45
		
46
		for (int i = 0; i < taillemax; i++) {
46
		for (int i = 0; i < taillemax; i++) {
Line 47... Line 47...
47
			JSONObject institutionCourante = institutions.get(i).isObject() ;
47
			JSONObject structureCourante = structures.get(i).isObject() ;
48
			
48
			
49
			if (institutionCourante != null)	{
49
			if (structureCourante != null)	{
50
				Structure institution = new Structure(institutionCourante);
50
				Structure structure = new Structure(structureCourante);
51
				this.put(institution.getId(), institution);
51
				this.put(structure.getId(), structure);
52
			}
52
			}
Line 53... Line 53...
53
		}
53
		}
54
	}
54
	}