Subversion Repositories eFlore/Applications.del

Rev

Rev 210 | Rev 232 | 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;
141 aurelien 4
import java.util.ArrayList;
60 benjamin 5
import java.util.Date;
227 aurelien 6
import java.util.HashMap;
7
import java.util.Map;
9 benjamin 8
 
227 aurelien 9
import com.google.gwt.user.client.Window;
10
 
141 aurelien 11
public class PropositionDetermination implements Serializable {
9 benjamin 12
 
13
	private static final long serialVersionUID = 840032625524143547L;
60 benjamin 14
 
9 benjamin 15
	private String id;
90 aurelien 16
 
141 aurelien 17
	private ArrayList<Commentaire> commentaires = new ArrayList<Commentaire>();
90 aurelien 18
 
19
	private String espece;
141 aurelien 20
 
227 aurelien 21
	private Map<String,VoteDetermination> votesDeterminations = new HashMap<String,VoteDetermination>();
9 benjamin 22
 
90 aurelien 23
	private String contributeur;
9 benjamin 24
 
60 benjamin 25
	private Date date;
9 benjamin 26
 
141 aurelien 27
	public void ajouterVoteDetermination(VoteDetermination vd) {
227 aurelien 28
		votesDeterminations.put(vd.getContributeur(), vd);
9 benjamin 29
	}
30
 
90 aurelien 31
	public String getContributeur() {
32
		return contributeur;
9 benjamin 33
	}
34
 
90 aurelien 35
	public void setContributeur(String contributeur) {
36
		this.contributeur = contributeur;
9 benjamin 37
	}
38
 
39
	public String getId() {
40
		return id;
41
	}
42
 
43
	public void setId(String id) {
44
		this.id = id;
45
	}
46
 
60 benjamin 47
	public Date getDate() {
48
		return date;
49
	}
50
 
51
	public void setDate(Date date) {
52
		this.date = date;
53
	}
54
 
141 aurelien 55
	public ArrayList<Commentaire> getCommentaires() {
56
		return commentaires;
90 aurelien 57
	}
58
 
141 aurelien 59
	public void setCommentaires(ArrayList<Commentaire> commentaires) {
60
		this.commentaires = commentaires;
90 aurelien 61
	}
141 aurelien 62
 
63
	public void ajouterCommentaire(Commentaire commentaire) {
64
		this.commentaires.add(commentaire);
65
	}
90 aurelien 66
 
67
	public String getEspece() {
68
		return espece;
69
	}
70
 
71
	public void setEspece(String espece) {
72
		this.espece = espece;
73
	}
147 benjamin 74
 
227 aurelien 75
	public Map<String, VoteDetermination> getVotesDeterminations() {
147 benjamin 76
		return votesDeterminations;
77
	}
78
 
227 aurelien 79
	public void setVotesDeterminations(Map<String, VoteDetermination> votesDeterminations) {
147 benjamin 80
		this.votesDeterminations = votesDeterminations;
81
	}
9 benjamin 82
}