Subversion Repositories eFlore/Applications.coel

Rev

Rev 1802 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1802 aurelien 1
package org.tela_botanica.client.modeles.collection;
2
 
3
import org.tela_botanica.client.modeles.aDonnee;
4
 
5
import com.google.gwt.json.client.JSONObject;
6
 
7
public class CollectionAStructure extends aDonnee {
8
 
9
	private static final long serialVersionUID = -8891776931124681678L;
10
	public static final String PREFIXE = "cc";
11
	public static String[] champsObligatoires = {"cc_id_collection","cc_nom"};
12
 
13
 
14
	public CollectionAStructure(JSONObject collectionAStructure){
15
		initialiserModele(collectionAStructure);
16
	}
17
 
18
	@Override
19
	protected String getPrefixe() {
20
		return PREFIXE;
21
	}
22
 
23
	@Override
24
	protected String[] getChampsObligatoires() {
25
		return champsObligatoires;
26
	}
27
 
28
	public String getNom() {
29
		return renvoyerValeurCorrecte("nom");
30
	}
31
 
32
	public String getIdCollection() {
33
		return renvoyerValeurCorrecte("id_collection");
34
	}
35
}