|
tauZaman v0.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--tauzaman.calendar.CalendarRepository
CalendarRepository
class manages a collection of Calendar(s).
For example:
CalendarRepository cr = new CalendarRepository(); cr.loadCalendar(new URL("http://www.eecs.wsu.edu/greg.xml"));
Calendar
Field Summary | |
private java.util.Hashtable |
calendarCache
Currently loaded Calendar s in this CalendarRepository |
Constructor Summary | |
CalendarRepository()
Constructs a CalendarRepository object.
|
Method Summary | |
Calendar |
loadCalendar(java.net.URL url)
Loads a Calendar into this CalendarRepository . |
java.lang.String |
toString()
Returns all URLs in this CalendarRepository<>. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private java.util.Hashtable calendarCache
Calendar
s in this CalendarRepository
Constructor Detail |
public CalendarRepository()
CalendarRepository
object.
It also forms a Hashtable, in which keys are URLs and values
are Calendar
objects.
Method Detail |
public Calendar loadCalendar(java.net.URL url) throws CalendarFormationException
Loads a Calendar
into this CalendarRepository
. If
Calendar with given URL does not exist in this CalendarRepository
then URL will chased and Calendar
that it points will be loaded and
a handle to loaded Calendar
will be returned.
Otherwise, if Calendar with given URL exists in this CalendarRepository
then a a handle to existing Calendar
will be returned.
url
- Url of Calendar specification file.
Calendar
CalendarFormationException
- if there is any problem with
parsing the file that given URL pointspublic java.lang.String toString()
CalendarRepository<>.
- Overrides:
toString
in class java.lang.Object
- Returns:
- String representation of urls tokenized with a blankspace
|
tauZaman v0.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |