|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectshared.CalendarCategory
This class specifies a category of the calendar events. Its wrapping a vector of references of all events of this category.
| Constructor Summary | |
CalendarCategory(java.io.File categoryFile)
Creates a new calendar category object and sets the categorie's name to the filename of the category. |
|
CalendarCategory(java.lang.String sCategoryName)
Creates a new calendar category object and sets the categorie's File to the name of the category. |
|
| Method Summary | |
void |
addEvent(CalendarEvent event)
This method adds an event to the category. |
void |
flush()
This method flushes the calendar category to the database at the filesystem. |
java.util.Vector |
getEvents()
This method returns the categorie's events. |
java.io.File |
getFile()
This method returns the calendar events file object. |
java.util.Vector |
getMatchingEvents(ClientRequest clientRequest)
This method looks for all calendar events of this category which matches a given client's request. |
java.lang.String |
getName()
This method returns the categorie's name. |
boolean |
hasChanged()
This method lets you check if the calendar category has been modified/changed by a calendar client request. |
boolean |
matchesName(java.util.regex.Pattern pattern)
This method checks the current category's name against a regular expression pattern. |
void |
removeEvent(CalendarEvent event)
This method removes a given event from its event vector. |
void |
setEvents(java.util.Vector vecEvents)
This method sets the categorie's initial events. |
void |
setHasChanged(boolean bHasChanged)
This method specifies if the calendar category has been modified/changed or not. |
void |
unsetFile()
This method Sets the categories file handle to null. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CalendarCategory(java.io.File categoryFile)
categoryFile - The file object which contains the unparsed events for this specific category. It will be unset after parsing.public CalendarCategory(java.lang.String sCategoryName)
sCategoryName - Specifies the categorie's name.| Method Detail |
public void setEvents(java.util.Vector vecEvents)
vecEvents - Specifies the categorie's events.public void addEvent(CalendarEvent event)
event - Specifies the calendar event to add to this category.public java.io.File getFile()
public void unsetFile()
public java.lang.String getName()
public java.util.Vector getEvents()
public java.util.Vector getMatchingEvents(ClientRequest clientRequest)
clientRequest - Specifies the client request sent by the calendar client.
public boolean matchesName(java.util.regex.Pattern pattern)
pattern - Specifies the pattern to be used.
public void removeEvent(CalendarEvent event)
event - Specifies the calendar event object to be removed from this categorypublic boolean hasChanged()
public void setHasChanged(boolean bHasChanged)
bHasChanged - Specifies if the category has been modified/changed or not.public void flush()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||