inc.che.icalgrabber
Class Event

java.lang.Object
  extended byinc.che.icalgrabber.Event

public class Event
extends java.lang.Object

Class represents an ical Event.

Author:
Steve McMee

Constructor Summary
Event()
          Constructor for Event.
 
Method Summary
 boolean check()
          Checks the attribute values.
 java.lang.String getDescription()
          get the Description.
 java.util.Date getEndDate()
          get the End date.
 java.util.Date getEndTime()
          get the end Time.
 boolean getHasEnd()
          Checks wheter the event has an end date.
 java.lang.String getIcalEnd()
          get the End date in ical Format.
 java.lang.String getIcalStart()
          get the start date in ical Format.
 java.lang.String getId()
          get the event Id.
 boolean getLastAllDay()
          checks wheter the event lasts all day.
 java.lang.String getLocation()
          get the location.
 java.util.Date getStartDate()
          get the start Date.
 java.util.Date getStartTime()
          get the start Time.
 java.lang.String getSummary()
          get the Summary.
 java.lang.String getYear()
          get the event fixed year.
 void setConverter(inc.che.icalgrabber.StringConverter converter)
          set the converter.
 void setDescription(java.lang.String description)
          set the description.
 void setEndDate(java.util.Date endDate)
          set the endDate.
 void setEndTime(java.util.Date endTime)
          set the endTime.
 void setId(java.lang.String id)
          set the id.
 void setLocation(java.lang.String location)
          set the location.
 void setStartDate(java.util.Date startDate)
          set the startDate.
 void setStartTime(java.util.Date startTime)
          set the startTime.
 void setSummary(java.lang.String summary)
          set the summary.
 void setYear(java.lang.String year)
          set the event fixed year.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Event

public Event()
Constructor for Event.

Method Detail

getDescription

public java.lang.String getDescription()
get the Description.

Returns:
description

getEndDate

public java.util.Date getEndDate()
get the End date.

Returns:
end

getEndTime

public java.util.Date getEndTime()
get the end Time.

Returns:
end

getIcalEnd

public java.lang.String getIcalEnd()
get the End date in ical Format.

Returns:
end

getIcalStart

public java.lang.String getIcalStart()
get the start date in ical Format.

Returns:
start

getYear

public java.lang.String getYear()
get the event fixed year.

Returns:
year

setYear

public void setYear(java.lang.String year)
set the event fixed year.

Parameters:
year - the new year

getId

public java.lang.String getId()
get the event Id.

Returns:
id

getStartDate

public java.util.Date getStartDate()
get the start Date.

Returns:
start

getStartTime

public java.util.Date getStartTime()
get the start Time.

Returns:
start

getSummary

public java.lang.String getSummary()
get the Summary.

Returns:
summary

setConverter

public void setConverter(inc.che.icalgrabber.StringConverter converter)
set the converter.

Parameters:
converter - new converter

setDescription

public void setDescription(java.lang.String description)
set the description.

Parameters:
description - new description

setEndDate

public void setEndDate(java.util.Date endDate)
set the endDate.

Parameters:
endDate - new endDate

setEndTime

public void setEndTime(java.util.Date endTime)
set the endTime.

Parameters:
endTime - new endTime

setId

public void setId(java.lang.String id)
set the id.

Parameters:
id - new id

setStartDate

public void setStartDate(java.util.Date startDate)
set the startDate.

Parameters:
startDate - new startDate

setStartTime

public void setStartTime(java.util.Date startTime)
set the startTime.

Parameters:
startTime - new startTime

setSummary

public void setSummary(java.lang.String summary)
set the summary.

Parameters:
summary - new summary

toString

public java.lang.String toString()

getLocation

public java.lang.String getLocation()
get the location.

Returns:
location

setLocation

public void setLocation(java.lang.String location)
set the location.

Parameters:
location - new location

getLastAllDay

public boolean getLastAllDay()
checks wheter the event lasts all day.

Returns:
true if the event lasts all day

getHasEnd

public boolean getHasEnd()
Checks wheter the event has an end date.

Returns:
true if the event has an end date

check

public boolean check()
              throws java.lang.Exception
Checks the attribute values.

Returns:
true if the values are correct
Throws:
java.lang.Exception - if the check fails


Copyright © 2005 Che Inc.. All Rights Reserved.