Subversion Repositories eFlore/Applications.del

Rev

Rev 232 | Rev 447 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
9 benjamin 1
package org.tela_botanica.del.client.modeles;
2
 
3
import java.io.Serializable;
60 benjamin 4
import java.util.ArrayList;
9 benjamin 5
import java.util.List;
6
 
159 benjamin 7
public class Observation implements Serializable {
9 benjamin 8
 
9
	private static final long serialVersionUID = 840032625524143547L;
296 benjamin 10
	private String id, auteur, species, nomRetenu, famille, localite, date, numNomenclatural;
9 benjamin 11
 
60 benjamin 12
	private List<String> motsClefs = new ArrayList<String>();
183 gduche 13
	private List<PropositionDetermination> propositionsDetermination = new ArrayList<PropositionDetermination>();
159 benjamin 14
	private List<Image> images = new ArrayList<Image>();
116 benjamin 15
 
9 benjamin 16
	public String getAuteur() {
17
		return auteur;
18
	}
19
 
20
	public void setAuteur(String auteur) {
21
		this.auteur = auteur;
22
	}
23
 
24
	public String getSpecies() {
25
		return species;
26
	}
27
 
28
	public void setSpecies(String species) {
29
		this.species = species;
30
	}
31
 
34 gduche 32
	public String getNomRetenu() {
33
		return nomRetenu;
9 benjamin 34
	}
35
 
34 gduche 36
	public void setNomRetenu(String commonName) {
37
		this.nomRetenu = commonName;
9 benjamin 38
	}
39
 
40
	public String getFamille() {
41
		return famille;
42
	}
43
 
44
	public void setFamille(String famille) {
45
		this.famille = famille;
46
	}
47
 
48
	public String getLocalite() {
49
		return localite;
50
	}
51
 
52
	public void setLocalite(String localite) {
53
		this.localite = localite;
54
	}
55
 
56
	public String getDate() {
57
		return date;
58
	}
59
 
60
	public void setDate(String date) {
61
		this.date = date;
62
	}
63
 
64
	public String getNumNomenclatural() {
65
		return numNomenclatural;
66
	}
67
 
68
	public void setNumNomenclatural(String numNomenclatural) {
69
		this.numNomenclatural = numNomenclatural;
70
	}
71
 
183 gduche 72
	public List<PropositionDetermination> getPropositionsDetermination() {
73
		return propositionsDetermination;
9 benjamin 74
	}
75
 
183 gduche 76
	public void setImageCelValidationDatas(List<PropositionDetermination> propositionsDetermination) {
77
		this.propositionsDetermination = propositionsDetermination;
9 benjamin 78
	}
79
 
60 benjamin 80
	public List<String> getMotsClefs() {
81
		return motsClefs;
82
	}
83
 
84
	public void setMotsClefs(List<String> motsClefs) {
85
		this.motsClefs = motsClefs;
86
	}
87
 
141 aurelien 88
	public void addImageCelValidationData(PropositionDetermination observationValidation) {
183 gduche 89
		propositionsDetermination.add(observationValidation);
117 aurelien 90
	}
135 gduche 91
 
117 aurelien 92
	public ArrayList<String> getPropositionsTaxonsData() {
135 gduche 93
 
117 aurelien 94
		ArrayList<String> propositionsTaxonDatas = new ArrayList<String>();
183 gduche 95
		for (PropositionDetermination observationValidation : propositionsDetermination) {
117 aurelien 96
			String espece = observationValidation.getEspece();
97
			if (espece != "" && !propositionsTaxonDatas.contains(espece)) {
98
				propositionsTaxonDatas.add(observationValidation.getEspece());
99
			}
100
		}
135 gduche 101
 
117 aurelien 102
		return propositionsTaxonDatas;
103
	}
116 benjamin 104
 
147 benjamin 105
	public List<Image> getImages() {
106
		return images;
107
	}
108
 
109
	public void setImages(List<Image> images) {
110
		this.images = images;
111
	}
112
 
296 benjamin 113
	public String getId() {
114
		return id;
115
	}
116
 
117
	public void setId(String id) {
118
		this.id = id;
119
	}
120
 
9 benjamin 121
}