|
tauZaman v0.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--tauzaman.calendricsystem.CalendricSystemRepository
CalendricSystemRepositoryr
class is the entrance point of calendric
systems and calendars that they contain. It forms and maintains
new CalendricSystem
and Calendar
s
through a CalendarRepository
. For a user to use services of
tauzaman there are two main registration process. One of them is
done once, which is registering to system. And the other one, is registering
to a service of a particular CalendricSystem
. Latter can be done
for a limited number of times depending on the maximum number of different
CalendricSystem
s that can be used.
CalendricSystem
,
Calendar
Field Summary | |
private java.util.Hashtable |
calendricSystems
A Hashtable, whose keys are URLs of CalendricSystem s and values are
CalendricSystem handles. |
private CalendarRepository |
cr
A handle to unique CalendarRepository that this
CalendricSystemRepository uses. |
Constructor Summary | |
CalendricSystemRepository(CalendarRepository cr)
Constructs a Calendric System Manager and allocates memory for database of CalendricSystem . |
Method Summary | |
java.net.URL[] |
getAllCalendricSystemUrls()
Returns urls of all CalendricSystem s in the database. |
private CalendricSystem |
getCalendricSystem(java.net.URL url)
Returns a handle to CalendricSystem in the database. |
CalendricSystem |
loadCalendricSystem(java.net.URL url)
Loads a CalendricSystem , given its URL and returns a handle to loaded
CalendricSystem . |
java.lang.String |
toString()
Returns urls of all CalendricSystem s. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private java.util.Hashtable calendricSystems
CalendricSystem
s and values are
CalendricSystem
handles.
private CalendarRepository cr
CalendarRepository
that this
CalendricSystemRepository
uses.
Constructor Detail |
public CalendricSystemRepository(CalendarRepository cr)
CalendricSystem
.
cr
- unique CalendarRepository
that this
CalendricSystemRepository
usesMethod Detail |
public CalendricSystem loadCalendricSystem(java.net.URL url) throws CalendricSystemFormationException
CalendricSystem
, given its URL and returns a handle to loaded
CalendricSystem
. If a CalendricSystem
with given URL already
exists in the database, then just return a handle without further loading.
url
- URL of CalendricSystem
specification to be loaded
CalendricSystem
CalendricSystemFormationException
- if there is any problem occurs
when parsing the specification file pointed by URLpublic java.net.URL[] getAllCalendricSystemUrls()
CalendricSystem
s in the database.
private CalendricSystem getCalendricSystem(java.net.URL url)
CalendricSystem
in the database. Returns
null if there is no such CalendricSystem
in the system.
url
- URL of the CalendricSystem
that is looked for.
CalendricSystem
found in the database.public java.lang.String toString()
CalendricSystem
s.
toString
in class java.lang.Object
|
tauZaman v0.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |