New file |
0,0 → 1,49 |
package org.tela_botanica.client.modeles.structure; |
|
import org.tela_botanica.client.modeles.aDonneeListe; |
|
import com.google.gwt.json.client.JSONArray; |
import com.google.gwt.json.client.JSONObject; |
|
/** |
* Table de hachage composée d'informations sur les Structures, renvoyé par un objet de type DAO |
* La clé est le nom de l'entite + le nom de l'entite parente |
* |
* @author david delon |
* |
*/ |
public class StructureListe extends aDonneeListe<Structure> { |
|
private static final long serialVersionUID = 7384579567038300856L; |
|
public StructureListe() { |
super(); |
} |
|
public StructureListe(int taille) { |
super(taille); |
} |
|
/** |
* Constructeur pour une liste d'institutions |
* @param dates |
*/ |
public StructureListe(JSONArray structures) { |
super(structures.size()) ; |
final int taillemax = structures.size(); |
|
for (int i = 0; i < taillemax; i++) { |
JSONObject structureCourante = structures.get(i).isObject() ; |
|
if (structureCourante != null) { |
Structure structure = new Structure(structureCourante); |
StructureValorisation valorisation = new StructureValorisation(structureCourante); |
structure.setValorisation(valorisation); |
StructureConservation conservation = new StructureConservation(structureCourante); |
structure.setConservation(conservation); |
this.put(structure.getId(), structure); |
} |
} |
} |
|
} |
Property changes: |
Added: svn:mergeinfo |