/**
 * 
 */
package fr.utbm.to52.smarthome.model.calendar;

import java.util.Date;

import fr.utbm.to52.smarthome.model.location.Location;

/**
 * @author Alexandre Guyon
 *
 */
public class Event {

	private Date begin;
	
	private Date end;
	
	private String title;
	
	private Location loc;
	
	/**
	 * 
	 */
	public Event() {
		// TODO Auto-generated constructor stub
	}

	/**
	 * @return the begin
	 */
	public Date getBegin() {
		return this.begin;
	}

	/**
	 * @param begin the begin to set
	 */
	public void setBegin(Date begin) {
		this.begin = begin;
	}

	/**
	 * @return the end
	 */
	public Date getEnd() {
		return this.end;
	}

	/**
	 * @param end the end to set
	 */
	public void setEnd(Date end) {
		this.end = end;
	}

	/**
	 * @return the title
	 */
	public String getTitle() {
		return this.title;
	}

	/**
	 * @param title the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * @return the loc
	 */
	public Location getLoc() {
		return this.loc;
	}

	/**
	 * @param loc the loc to set
	 */
	public void setLoc(Location loc) {
		this.loc = loc;
	}

}

@@ -57,32 +57,8 @@
 r;%0A%0A
-import java.util.Date;%0A%0A
 impo
@@ -178,24 +178,32 @@
 private Date
+Calendar
  begin;%0A%09%0A%09p
@@ -209,24 +209,32 @@
 private Date
+Calendar
  end;%0A%09%0A%09pri
@@ -398,24 +398,32 @@
 %09public Date
+Calendar
  getBegin() 
@@ -519,16 +519,24 @@
 gin(Date
+Calendar
  begin) 
@@ -605,16 +605,24 @@
 lic Date
+Calendar
  getEnd(
@@ -712,16 +712,24 @@
 End(Date
+Calendar
  end) %7B%0A

Convert to DateCalendar