New file |
0,0 → 1,61 |
package org.tela_botanica.del.client.modeles; |
|
import java.util.ArrayList; |
import java.util.Date; |
|
import com.sun.xml.internal.bind.v2.runtime.unmarshaller.XsiNilLoader.Array; |
|
public class Commentaire { |
|
|
private String auteur; |
|
private Date date; |
|
private String commentaire; |
|
private ArrayList<Commentaire> listeCommentaires = new ArrayList<Commentaire>(); |
|
public Commentaire(String auteur, Date date, String commentaire) { |
super(); |
this.auteur = auteur; |
this.date = date; |
this.commentaire = commentaire; |
} |
|
public String getAuteur() { |
return auteur; |
} |
|
public void setAuteur(String auteur) { |
this.auteur = auteur; |
} |
|
public Date getDate() { |
return date; |
} |
|
public void setDate(Date date) { |
this.date = date; |
} |
|
public String getCommentaire() { |
return commentaire; |
} |
|
public void setCommentaire(String commentaire) { |
this.commentaire = commentaire; |
} |
|
public ArrayList<Commentaire> getListeCommentaires() { |
return listeCommentaires; |
} |
|
public void setListeCommentaires(ArrayList<Commentaire> listeCommentaires) { |
this.listeCommentaires = listeCommentaires; |
} |
|
public void ajouterCommentaire(Commentaire commentaire) { |
this.listeCommentaires.add(commentaire); |
} |
} |