Subversion Repositories eFlore/Applications.del

Rev

Details | 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;
10
 
11
	private String auteur;
12
 
13
	private String species;
14
 
34 gduche 15
	private String nomRetenu;
9 benjamin 16
 
17
	private String famille;
18
 
19
	private String localite;
20
 
21
	private String date;
22
 
23
	private String numNomenclatural;
24
 
60 benjamin 25
	private List<String> motsClefs = new ArrayList<String>();
26
 
183 gduche 27
	private List<PropositionDetermination> propositionsDetermination = new ArrayList<PropositionDetermination>();
9 benjamin 28
 
159 benjamin 29
	private List<Image> images = new ArrayList<Image>();
116 benjamin 30
 
9 benjamin 31
	public String getAuteur() {
32
		return auteur;
33
	}
34
 
35
	public void setAuteur(String auteur) {
36
		this.auteur = auteur;
37
	}
38
 
39
	public String getSpecies() {
40
		return species;
41
	}
42
 
43
	public void setSpecies(String species) {
44
		this.species = species;
45
	}
46
 
34 gduche 47
	public String getNomRetenu() {
48
		return nomRetenu;
9 benjamin 49
	}
50
 
34 gduche 51
	public void setNomRetenu(String commonName) {
52
		this.nomRetenu = commonName;
9 benjamin 53
	}
54
 
55
	public String getFamille() {
56
		return famille;
57
	}
58
 
59
	public void setFamille(String famille) {
60
		this.famille = famille;
61
	}
62
 
63
	public String getLocalite() {
64
		return localite;
65
	}
66
 
67
	public void setLocalite(String localite) {
68
		this.localite = localite;
69
	}
70
 
71
	public String getDate() {
72
		return date;
73
	}
74
 
75
	public void setDate(String date) {
76
		this.date = date;
77
	}
78
 
79
	public String getNumNomenclatural() {
80
		return numNomenclatural;
81
	}
82
 
83
	public void setNumNomenclatural(String numNomenclatural) {
84
		this.numNomenclatural = numNomenclatural;
85
	}
86
 
183 gduche 87
	public List<PropositionDetermination> getPropositionsDetermination() {
88
		return propositionsDetermination;
9 benjamin 89
	}
90
 
183 gduche 91
	public void setImageCelValidationDatas(List<PropositionDetermination> propositionsDetermination) {
92
		this.propositionsDetermination = propositionsDetermination;
9 benjamin 93
	}
94
 
60 benjamin 95
	public List<String> getMotsClefs() {
96
		return motsClefs;
97
	}
98
 
99
	public void setMotsClefs(List<String> motsClefs) {
100
		this.motsClefs = motsClefs;
101
	}
102
 
141 aurelien 103
	public void addImageCelValidationData(PropositionDetermination observationValidation) {
183 gduche 104
		propositionsDetermination.add(observationValidation);
117 aurelien 105
	}
135 gduche 106
 
117 aurelien 107
	public ArrayList<String> getPropositionsTaxonsData() {
135 gduche 108
 
117 aurelien 109
		ArrayList<String> propositionsTaxonDatas = new ArrayList<String>();
183 gduche 110
		for (PropositionDetermination observationValidation : propositionsDetermination) {
117 aurelien 111
			String espece = observationValidation.getEspece();
112
			if (espece != "" && !propositionsTaxonDatas.contains(espece)) {
113
				propositionsTaxonDatas.add(observationValidation.getEspece());
114
			}
115
		}
135 gduche 116
 
117 aurelien 117
		return propositionsTaxonDatas;
118
	}
116 benjamin 119
 
147 benjamin 120
	public List<Image> getImages() {
121
		return images;
122
	}
123
 
124
	public void setImages(List<Image> images) {
125
		this.images = images;
126
	}
127
 
9 benjamin 128
}