Subversion Repositories eFlore/Applications.del

Rev

Rev 60 | Rev 116 | 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
 
113 aurelien 7
import org.tela_botanica.del.client.utils.GwtObservable;
9 benjamin 8
 
113 aurelien 9
public class Observation extends GwtObservable implements Serializable {
10
 
9 benjamin 11
	private static final long serialVersionUID = 840032625524143547L;
12
 
13
	private String auteur;
14
 
15
	private String species;
16
 
34 gduche 17
	private String nomRetenu;
9 benjamin 18
 
19
	private String famille;
20
 
21
	private String localite;
22
 
23
	private String date;
24
 
25
	private String url;
26
 
27
	private String idImage;
28
 
29
	private String numNomenclatural;
30
 
60 benjamin 31
	private List<String> motsClefs = new ArrayList<String>();
32
 
14 benjamin 33
	private List<ObservationValidation> imageCelValidationDatas;
9 benjamin 34
 
35
	public String getAuteur() {
36
		return auteur;
37
	}
38
 
39
	public void setAuteur(String auteur) {
40
		this.auteur = auteur;
41
	}
42
 
43
	public String getSpecies() {
44
		return species;
45
	}
46
 
47
	public void setSpecies(String species) {
48
		this.species = species;
49
	}
50
 
34 gduche 51
	public String getNomRetenu() {
52
		return nomRetenu;
9 benjamin 53
	}
54
 
34 gduche 55
	public void setNomRetenu(String commonName) {
56
		this.nomRetenu = commonName;
9 benjamin 57
	}
58
 
59
	public String getFamille() {
60
		return famille;
61
	}
62
 
63
	public void setFamille(String famille) {
64
		this.famille = famille;
65
	}
66
 
67
	public String getLocalite() {
68
		return localite;
69
	}
70
 
71
	public void setLocalite(String localite) {
72
		this.localite = localite;
73
	}
74
 
75
	public String getDate() {
76
		return date;
77
	}
78
 
79
	public void setDate(String date) {
80
		this.date = date;
81
	}
82
 
83
	public String getUrl() {
84
		return url;
85
	}
86
 
87
	public void setUrl(String url) {
88
		this.url = url;
89
	}
90
 
91
	public String getNumNomenclatural() {
92
		return numNomenclatural;
93
	}
94
 
95
	public void setNumNomenclatural(String numNomenclatural) {
96
		this.numNomenclatural = numNomenclatural;
97
	}
98
 
99
	public String getIdImage() {
100
		return idImage;
101
	}
102
 
103
	public void setIdImage(String idImage) {
104
		this.idImage = idImage;
105
	}
106
 
14 benjamin 107
	public List<ObservationValidation> getImageCelValidationDatas() {
9 benjamin 108
		return imageCelValidationDatas;
109
	}
113 aurelien 110
 
111
	public void addImageCelValidationData(ObservationValidation observationValidation) {
112
		imageCelValidationDatas.add(observationValidation);
113
		setChanged();
114
		notifyObservers();
115
	}
116
 
117
	public ArrayList<String> getPropositionsTaxonsData() {
118
 
119
		ArrayList<String> propositionsTaxonDatas = new ArrayList<String>();
120
		for (ObservationValidation observationValidation : imageCelValidationDatas) {
121
			String espece = observationValidation.getEspece();
122
			if (espece != "" && !propositionsTaxonDatas.contains(espece)) {
123
				propositionsTaxonDatas.add(observationValidation.getEspece());
124
			}
125
		}
126
 
127
		return propositionsTaxonDatas;
128
	}
9 benjamin 129
 
34 gduche 130
	public void setImageCelValidationDatas(List<ObservationValidation> imageCelValidationDatas) {
9 benjamin 131
		this.imageCelValidationDatas = imageCelValidationDatas;
132
	}
133
 
60 benjamin 134
	public List<String> getMotsClefs() {
135
		return motsClefs;
136
	}
137
 
138
	public void setMotsClefs(List<String> motsClefs) {
139
		this.motsClefs = motsClefs;
140
	}
141
 
9 benjamin 142
}