|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiweekly.component.ICalComponent
biweekly.component.VTodo
public class VTodo
Defines an action item or assignment.
Field Summary |
---|
Fields inherited from class biweekly.component.ICalComponent |
---|
components, properties |
Constructor Summary | |
---|---|
VTodo()
Creates a new to-do entry. |
Method Summary | |
---|---|
void |
addAttachment(Attachment attachment)
Adds an attachment to the to-do. |
void |
addAttendee(Attendee attendee)
Adds a person who is involved in the to-do. |
Attendee |
addAttendee(String email)
Adds a person who is involved in the to-do. |
void |
addCategories(Categories categories)
Adds a list of "tags" or "keywords" that describe the to-do. |
Categories |
addCategories(List<String> categories)
Adds a list of "tags" or "keywords" that describe the to-do. |
Categories |
addCategories(String... categories)
Adds a list of "tags" or "keywords" that describe the to-do. |
void |
addComment(Comment comment)
Adds a comment to the to-do. |
Comment |
addComment(String comment)
Adds a comment to the to-do. |
void |
addContact(Contact contact)
Adds a contact to the to-do. |
Contact |
addContact(String contact)
Adds a contact to the to-do. |
void |
addExceptionDates(ExceptionDates exceptionDates)
Adds a list of exceptions to the recurrence rule defined in the to-do (if one is defined). |
void |
addRecurrenceDates(RecurrenceDates recurrenceDates)
Adds a list of dates/periods that help define the recurrence rule of this to-do (if one is defined). |
void |
addRelatedTo(RelatedTo relatedTo)
Adds a component that the to-do is related to. |
RelatedTo |
addRelatedTo(String uid)
Adds a component that the to-do is related to. |
Resources |
addResources(List<String> resources)
Adds a list of resources that are needed for the to-do. |
void |
addResources(Resources resources)
Adds a list of resources that are needed for the to-do. |
Resources |
addResources(String... resources)
Adds a list of resources that are needed for the to-do. |
List<Attachment> |
getAttachments()
Gets any attachments that are associated with the to-do. |
List<Attendee> |
getAttendees()
Gets the people who are involved in the to-do. |
List<Categories> |
getCategories()
Gets a list of "tags" or "keywords" that describe the to-do. |
Classification |
getClassification()
Gets the level of sensitivity of the to-do data. |
List<Comment> |
getComments()
Gets the comments attached to the to-do. |
Completed |
getCompleted()
Gets the date and time that the to-do was completed. |
List<Contact> |
getContacts()
Gets the contacts associated with the to-do. |
Created |
getCreated()
Gets the date-time that the to-do was initially created. |
DateDue |
getDateDue()
Gets the date that a to-do is due by. |
DateStart |
getDateStart()
Gets the date that the to-do starts. |
DateTimeStamp |
getDateTimeStamp()
Gets either (a) the creation date of the iCalendar object (if the Method property is defined) or (b) the date that the to-do was
last modified (the LastModified property also holds this
information). |
Description |
getDescription()
Gets a detailed description of the to-do. |
DurationProperty |
getDuration()
Gets the duration of the to-do. |
List<ExceptionDates> |
getExceptionDates()
Gets the list of exceptions to the recurrence rule defined in the to-do (if one is defined). |
Geo |
getGeo()
Gets a set of geographical coordinates. |
LastModified |
getLastModified()
Gets the date-time that the to-do was last changed. |
Location |
getLocation()
Gets the physical location of the to-do. |
Organizer |
getOrganizer()
Gets the organizer of the to-do. |
PercentComplete |
getPercentComplete()
Gets the amount that the to-do task has been completed. |
Priority |
getPriority()
Gets the priority of the to-do. |
List<RecurrenceDates> |
getRecurrenceDates()
Gets the list of dates/periods that help define the recurrence rule of this to-do (if one is defined). |
RecurrenceId |
getRecurrenceId()
Gets the original value of the DateStart property if the to-do is
recurring and has been modified. |
RecurrenceRule |
getRecurrenceRule()
Gets how often the to-do repeats. |
List<RelatedTo> |
getRelatedTo()
Gets the components that the to-do is related to. |
RequestStatus |
getRequestStatus()
Gets the response to a scheduling request. |
List<Resources> |
getResources()
Gets the resources that are needed for the to-do. |
Sequence |
getSequence()
Gets the revision number of the to-do. |
Status |
getStatus()
Gets the status of the to-do. |
Summary |
getSummary()
Gets the summary of the to-do. |
Uid |
getUid()
Gets the unique identifier for this to-do. |
Url |
getUrl()
Gets a URL to a resource that contains additional information about the to-do. |
void |
incrementSequence()
Increments the revision number of the to-do. |
void |
setClassification(Classification classification)
Sets the level of sensitivity of the to-do data. |
Classification |
setClassification(String classification)
Sets the level of sensitivity of the to-do data. |
void |
setCompleted(Completed completed)
Sets the date and time that the to-do was completed. |
Completed |
setCompleted(Date completed)
Sets the date and time that the to-do was completed. |
void |
setCreated(Created created)
Sets the date-time that the to-do was initially created. |
Created |
setCreated(Date created)
Sets the date-time that the to-do was initially created. |
DateDue |
setDateDue(Date dateDue)
Sets the date that a to-do is due by. |
void |
setDateDue(DateDue dateDue)
Sets the date that a to-do is due by. |
DateStart |
setDateStart(Date dateStart)
Sets the date that the to-do starts. |
void |
setDateStart(DateStart dateStart)
Sets the date that the to-do starts. |
DateTimeStamp |
setDateTimeStamp(Date dateTimeStamp)
Sets either (a) the creation date of the iCalendar object (if the Method property is defined) or (b) the date that the to-do was
last modified (the LastModified property also holds this
information). |
void |
setDateTimeStamp(DateTimeStamp dateTimeStamp)
Sets either (a) the creation date of the iCalendar object (if the Method property is defined) or (b) the date that the to-do was
last modified (the LastModified property also holds this
information). |
void |
setDescription(Description description)
Sets a detailed description of the to-do. |
Description |
setDescription(String description)
Sets a detailed description of the to-do. |
void |
setDuration(DurationProperty duration)
Sets the duration of the to-do. |
void |
setGeo(Geo geo)
Sets a set of geographical coordinates. |
LastModified |
setLastModified(Date lastModified)
Sets the date-time that the to-do was last changed. |
void |
setLastModified(LastModified lastModified)
Sets the date-time that the to-do was last changed. |
void |
setLocation(Location location)
Sets the physical location of the to-do. |
Location |
setLocation(String location)
Sets the physical location of the to-do. |
void |
setOrganizer(Organizer organizer)
Sets the organizer of the to-do. |
Organizer |
setOrganizer(String email)
Sets the organizer of the to-do. |
PercentComplete |
setPercentComplete(Integer percent)
Sets the amount that the to-do task has been completed. |
void |
setPercentComplete(PercentComplete percentComplete)
Sets the amount that the to-do task has been completed. |
Priority |
setPriority(Integer priority)
Sets the priority of the to-do. |
void |
setPriority(Priority priority)
Sets the priority of the to-do. |
RecurrenceId |
setRecurrenceId(Date originalStartDate)
Sets the original value of the DateStart property if the to-do is
recurring and has been modified. |
void |
setRecurrenceId(RecurrenceId recurrenceId)
Sets the original value of the DateStart property if the to-do is
recurring and has been modified. |
void |
setRecurrenceRule(RecurrenceRule recurrenceRule)
Sets how often the to-do repeats. |
void |
setRequestStatus(RequestStatus requestStatus)
Sets the response to a scheduling request. |
Sequence |
setSequence(Integer sequence)
Sets the revision number of the to-do. |
void |
setSequence(Sequence sequence)
Sets the revision number of the to-do. |
void |
setStatus(Status status)
Sets the status of the to-do. |
Summary |
setSummary(String summary)
Sets the summary of the to-do. |
void |
setSummary(Summary summary)
Sets the summary of the to-do. |
Uid |
setUid(String uid)
Sets the unique identifier for this to-do. |
void |
setUid(Uid uid)
Sets the unique identifier for this to-do. |
Url |
setUrl(String url)
Sets a URL to a resource that contains additional information about the to-do. |
void |
setUrl(Url url)
Sets a URL to a resource that contains additional information about the to-do. |
protected void |
validate(List<ICalComponent> components,
List<String> warnings)
Checks the component for data consistency problems or deviations from the spec. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VTodo()
Creates a new to-do entry.
The following properties are auto-generated on object creation. These properties must be present in order for the to-do to be valid:
Uid
- Set to a UUID.DateTimeStamp
- Set to the current date-time.
Method Detail |
---|
public Uid getUid()
public void setUid(Uid uid)
uid
- the UID or null to removepublic Uid setUid(String uid)
uid
- the UID or null to remove
public DateTimeStamp getDateTimeStamp()
Method
property is defined) or (b) the date that the to-do was
last modified (the LastModified
property also holds this
information). This to-do object comes populated with a
DateTimeStamp
property that is set to the current time. This is a
required property.
public void setDateTimeStamp(DateTimeStamp dateTimeStamp)
Method
property is defined) or (b) the date that the to-do was
last modified (the LastModified
property also holds this
information). This to-do object comes populated with a
DateTimeStamp
property that is set to the current time. This is a
required property.
dateTimeStamp
- the date time stamp or null to removepublic DateTimeStamp setDateTimeStamp(Date dateTimeStamp)
Method
property is defined) or (b) the date that the to-do was
last modified (the LastModified
property also holds this
information). This to-do object comes populated with a
DateTimeStamp
property that is set to the current time. This is a
required property.
dateTimeStamp
- the date time stamp or null to remove
public Classification getClassification()
public void setClassification(Classification classification)
classification
- the classification level or null to removepublic Classification setClassification(String classification)
classification
- the classification level (e.g. "CONFIDENTIAL") or
null to remove
public Completed getCompleted()
public void setCompleted(Completed completed)
completed
- the completion date or null to removepublic Completed setCompleted(Date completed)
completed
- the completion date or null to remove
public Created getCreated()
public void setCreated(Created created)
created
- the creation date-time or null to removepublic Created setCreated(Date created)
created
- the creation date-time or null to remove
public Description getDescription()
Summary
property.
public void setDescription(Description description)
Summary
property.
description
- the description or null to removepublic Description setDescription(String description)
Summary
property.
description
- the description or null to remove
public DateStart getDateStart()
public void setDateStart(DateStart dateStart)
dateStart
- the start date or null to removepublic DateStart setDateStart(Date dateStart)
dateStart
- the start date or null to remove
public Geo getGeo()
public void setGeo(Geo geo)
geo
- the geographical coordinates or null to removepublic LastModified getLastModified()
public void setLastModified(LastModified lastModified)
lastModified
- the last modified date or null to removepublic LastModified setLastModified(Date lastModified)
lastModified
- the last modified date or null to remove
public Location getLocation()
public void setLocation(Location location)
location
- the location or null to removepublic Location setLocation(String location)
location
- the location (e.g. "Room 101") or null to remove
public Organizer getOrganizer()
public void setOrganizer(Organizer organizer)
organizer
- the organizer or null to removepublic Organizer setOrganizer(String email)
email
- the organizer's email address (e.g. "johndoe@example.com")
or null to remove
public PercentComplete getPercentComplete()
public void setPercentComplete(PercentComplete percentComplete)
percentComplete
- the percent complete or null to removepublic PercentComplete setPercentComplete(Integer percent)
percent
- the percent complete (e.g. "50" for 50%) or null to remove
public Priority getPriority()
public void setPriority(Priority priority)
priority
- the priority or null to removepublic Priority setPriority(Integer priority)
priority
- the priority ("0" is undefined, "1" is the highest, "9"
is the lowest) or null to remove
public RecurrenceId getRecurrenceId()
DateStart
property if the to-do is
recurring and has been modified. Used in conjunction with the Uid
and Sequence
properties to uniquely identify a recurrence
instance.
public void setRecurrenceId(RecurrenceId recurrenceId)
DateStart
property if the to-do is
recurring and has been modified. Used in conjunction with the Uid
and Sequence
properties to uniquely identify a recurrence
instance.
recurrenceId
- the recurrence ID or null to removepublic RecurrenceId setRecurrenceId(Date originalStartDate)
DateStart
property if the to-do is
recurring and has been modified. Used in conjunction with the Uid
and Sequence
properties to uniquely identify a recurrence
instance.
originalStartDate
- the original start date or null to removepublic Sequence getSequence()
public void setSequence(Sequence sequence)
sequence
- the sequence numberpublic Sequence setSequence(Integer sequence)
sequence
- the sequence number
public void incrementSequence()
public Status getStatus()
public void setStatus(Status status)
Valid to-do status codes are:
status
- the status or null to removepublic Summary getSummary()
public void setSummary(Summary summary)
summary
- the summary or null to removepublic Summary setSummary(String summary)
summary
- the summary or null to remove
public Url getUrl()
public void setUrl(Url url)
url
- the URL or null to removepublic Url setUrl(String url)
url
- the URL (e.g. "http://example.com/resource.ics") or null to
remove
public RecurrenceRule getRecurrenceRule()
public void setRecurrenceRule(RecurrenceRule recurrenceRule)
recurrenceRule
- the recurrence rule or null to removepublic DateDue getDateDue()
public void setDateDue(DateDue dateDue)
DurationProperty
is defined.
dateDue
- the due date or null to removepublic DateDue setDateDue(Date dateDue)
DurationProperty
is defined.
dateDue
- the due date or null to remove
public DurationProperty getDuration()
public void setDuration(DurationProperty duration)
DateDue
is defined.
duration
- the duration or null to removepublic List<Attachment> getAttachments()
public void addAttachment(Attachment attachment)
attachment
- the attachment to addpublic List<Attendee> getAttendees()
public void addAttendee(Attendee attendee)
attendee
- the attendeepublic Attendee addAttendee(String email)
email
- the attendee's email address
public List<Categories> getCategories()
public void addCategories(Categories categories)
categories
- the categories to addpublic Categories addCategories(String... categories)
categories
- the categories to add
public Categories addCategories(List<String> categories)
categories
- the categories to add
public List<Comment> getComments()
public void addComment(Comment comment)
comment
- the comment to addpublic Comment addComment(String comment)
comment
- the comment to add
public List<Contact> getContacts()
public void addContact(Contact contact)
contact
- the contactpublic Contact addContact(String contact)
contact
- the contact (e.g. "ACME Co - (123) 555-1234")
public List<ExceptionDates> getExceptionDates()
public void addExceptionDates(ExceptionDates exceptionDates)
exceptionDates
- the list of exceptionspublic RequestStatus getRequestStatus()
public void setRequestStatus(RequestStatus requestStatus)
requestStatus
- the responsepublic List<RelatedTo> getRelatedTo()
public void addRelatedTo(RelatedTo relatedTo)
relatedTo
- the relationshippublic RelatedTo addRelatedTo(String uid)
uid
- the UID of the other component
public List<Resources> getResources()
public void addResources(Resources resources)
resources
- the resources to addpublic Resources addResources(String... resources)
resources
- the resources to add (e.g. "easel", "projector")
public Resources addResources(List<String> resources)
resources
- the resources to add (e.g. "easel", "projector")
public List<RecurrenceDates> getRecurrenceDates()
public void addRecurrenceDates(RecurrenceDates recurrenceDates)
recurrenceDates
- the recurrence datesprotected void validate(List<ICalComponent> components, List<String> warnings)
ICalComponent
validate
in class ICalComponent
components
- the hierarchy of components that the component belongs
towarnings
- the list to add the warnings to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |