public class CalendarList extends XMLRequest implements java.lang.Iterable<CalendarList.CalendarListItem>
Modifier and Type | Class and Description |
---|---|
static class |
CalendarList.CalendarListItem
Stores the name of a calendar/keyword its unique id.
|
Constructor and Description |
---|
CalendarList()
Creates a new
CalendarList request in order to get a list of calendar names. |
CalendarList(CalendarList.CalendarListItem calendar)
Creates a new
CalendarList request which returns all keywords of the specified calendar. |
Modifier and Type | Method and Description |
---|---|
CalendarList.CalendarListItem |
find(java.lang.String itemName)
Returns CalendarListItem instance for the specified name.
|
java.util.Iterator<CalendarList.CalendarListItem> |
iterator() |
int |
size()
Returns the number of elements.
|
getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, send
public CalendarList()
CalendarList
request in order to get a list of calendar names.public CalendarList(CalendarList.CalendarListItem calendar)
CalendarList
request which returns all keywords of the specified calendar.
If the calendar is not found an empty list is returned.calendar
- CalendarListItem
instance of the calendar whose keywords should be returnedpublic CalendarList.CalendarListItem find(java.lang.String itemName)
itemName
- Name of the calendar of keywordnull
if not foundpublic int size()
public java.util.Iterator<CalendarList.CalendarListItem> iterator()
iterator
in interface java.lang.Iterable<CalendarList.CalendarListItem>