View Javadoc

1   /*Copyright (C) 2004-... Stephane Gauchet for Hyphonem
2   
3    This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
4   
5    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
6   
7    You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
8    
9    Written by Stephane Gauchet
10   mail me at : sgauchet@free.fr
11   */
12  package fr.hyphonem.conges.data;
13  
14  import java.io.Serializable;
15  
16  /**
17   * @author Stephane Gauchet pour Hyphonem
18   */
19  public class CalendarData implements Serializable {
20  	/**
21  	 * 
22  	 */
23  	private static final long serialVersionUID = 1L;
24  
25  	private String id;
26  
27  	private String datedeb;
28  
29  	private String datefin;
30  
31  	private String raison;
32  
33  	private boolean cbmatin;
34  
35  	private boolean cbaprem;
36  
37  	private EmployeeData employee;
38  
39  	private String couleurRaison;
40  
41  	/**
42  	 * 
43  	 */
44  	public CalendarData() {
45  		super();
46  	}
47  
48  	public String toString() {
49  
50  		return getDatedeb() + " " + getDatefin() + " " + getRaison() + " m:"
51  				+ isCbmatin() + " a:" + isCbaprem();
52  	}
53  
54  	/**
55  	 * Returns the datedeb.
56  	 * 
57  	 * @return String
58  	 */
59  	public String getDatedeb() {
60  		return datedeb;
61  	}
62  
63  	/**
64  	 * Returns the datefin.
65  	 * 
66  	 * @return String
67  	 */
68  	public String getDatefin() {
69  		return datefin;
70  	}
71  
72  	/**
73  	 * Returns the raison.
74  	 * 
75  	 * @return String
76  	 */
77  	public String getRaison() {
78  		return raison;
79  	}
80  
81  	/**
82  	 * Sets the datedeb.
83  	 * 
84  	 * @param datedeb
85  	 *            The datedeb to set
86  	 */
87  	public void setDatedeb(String datedeb) {
88  		this.datedeb = datedeb;
89  	}
90  
91  	/**
92  	 * Sets the datefin.
93  	 * 
94  	 * @param datefin
95  	 *            The datefin to set
96  	 */
97  	public void setDatefin(String datefin) {
98  		this.datefin = datefin;
99  	}
100 
101 	/**
102 	 * Sets the raison.
103 	 * 
104 	 * @param raison
105 	 *            The raison to set
106 	 */
107 	public void setRaison(String raison) {
108 		this.raison = raison;
109 	}
110 
111 	/**
112 	 * Returns the cbaprem.
113 	 * 
114 	 * @return boolean
115 	 */
116 	public boolean isCbaprem() {
117 		return cbaprem;
118 	}
119 
120 	/**
121 	 * Returns the cbmatin.
122 	 * 
123 	 * @return boolean
124 	 */
125 	public boolean isCbmatin() {
126 		return cbmatin;
127 	}
128 
129 	/**
130 	 * Sets the cbaprem.
131 	 * 
132 	 * @param cbaprem
133 	 *            The cbaprem to set
134 	 */
135 	public void setCbaprem(boolean cbaprem) {
136 		this.cbaprem = cbaprem;
137 	}
138 
139 	/**
140 	 * Sets the cbmatin.
141 	 * 
142 	 * @param cbmatin
143 	 *            The cbmatin to set
144 	 */
145 	public void setCbmatin(boolean cbmatin) {
146 		this.cbmatin = cbmatin;
147 	}
148 
149 	/**
150 	 * Returns the employee.
151 	 * 
152 	 * @return EmployeeData
153 	 */
154 	public EmployeeData getEmployee() {
155 		return employee;
156 	}
157 
158 	/**
159 	 * Sets the employee.
160 	 * 
161 	 * @param employee
162 	 *            The employee to set
163 	 */
164 	public void setEmployee(EmployeeData employee) {
165 		this.employee = employee;
166 	}
167 
168 	/**
169 	 * @return id
170 	 */
171 	public String getId() {
172 		return id;
173 	}
174 
175 	/**
176 	 * @param id
177 	 */
178 	public void setId(String id) {
179 		this.id = id;
180 	}
181 
182 	/**
183 	 * @return couleurRaison
184 	 */
185 	public String getCouleurRaison() {
186 		return couleurRaison;
187 	}
188 
189 	/**
190 	 * @param string
191 	 */
192 	public void setCouleurRaison(String string) {
193 		couleurRaison = string;
194 	}
195 
196 }