|
tauZaman v0.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--tauzaman.calendricsystem.CalendricSystem
CalendricSystem
class represents a Calendric System, which contains
Calendar
s' Epoch
s and provides an entrance point to
all Epoch
and Calendar
services.
Calendar
,
PropertyManager
Constructor Summary | |
CalendricSystem(CalendarRepository cr,
java.net.URL url)
Constructs a CalendricSystem object;
Forms a CalendricSystem by parsing url. |
Method Summary | |
Granule |
castDeterminantInstant(Granule granule,
Granularity toGranularity)
|
Granule |
castDeterminantInterval(Granule granule,
Granularity toGranularity)
|
void |
clearCaches()
|
Calendar[] |
getAllCalendars()
Returns all Calendar s in this CalendricSystem . |
Calendar |
getCalendar(java.lang.String calendarName)
|
Granularity |
getDefaultGranularity()
Returns default Granularity of this CalendricSystem . |
java.lang.String |
getDefaultRegex()
Returns default regular expression for this CalendricSystem |
Mapping[] |
getMappings()
Returns Mapping s of this
CalendricSystem . |
Calendar[] |
getOrderedCalendars(Property overrideInputOrderProperty)
Returns an array of ordered list of Calendar s for converting
a temporal data type to corresponding output string. |
java.net.URL |
getUrl()
Returns url of this CalendricSystem 's specification file. |
boolean |
isCoarser(Granularity g1,
Granularity g2)
|
boolean |
isEquivalent(Granularity g1,
Granularity g2)
|
boolean |
isFiner(Granularity g1,
Granularity g2)
|
boolean |
isIncomparable(Granularity g1,
Granularity g2)
|
void |
printGranularityLattice()
|
java.lang.String |
toString()
Returns url of this CalendricSystem . |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CalendricSystem(CalendarRepository cr, java.net.URL url) throws CalendricSystemFormationException
CalendricSystem
object;
Forms a CalendricSystem
by parsing url.
cr
- CalendarRepository
, which this CalendricSystem
will use to load Calendar
s
CalendricSystemFormationException
- if any error occurs while forming
CalendricSystem
from given URLMethod Detail |
public java.net.URL getUrl()
CalendricSystem
's specification file.
CalendricSystem
public Calendar[] getAllCalendars()
Calendar
s in this CalendricSystem
.
Calendar
spublic java.lang.String getDefaultRegex()
CalendricSystem
public Mapping[] getMappings()
Mapping
s of this
CalendricSystem
.
Mapping
spublic Granularity getDefaultGranularity()
Granularity
of this CalendricSystem
.
Granularity
, which is the default Granularity
public Calendar[] getOrderedCalendars(Property overrideInputOrderProperty) throws CalendricSystemServiceException
Calendar
s for converting
a temporal data type to corresponding output string.
overrideInputOrderProperty
- Property
that will be used
when forming an ordered input calendar list
Calendar
s
CalendricSystemServiceException
- if any problem occurs when forming
an ordered Calendar
listpublic java.lang.String toString()
CalendricSystem
.
toString
in class java.lang.Object
public void printGranularityLattice()
public Calendar getCalendar(java.lang.String calendarName)
public Granule castDeterminantInstant(Granule granule, Granularity toGranularity) throws CalendricSystemServiceException
CalendricSystemServiceException
public Granule castDeterminantInterval(Granule granule, Granularity toGranularity) throws CalendricSystemServiceException
CalendricSystemServiceException
public boolean isCoarser(Granularity g1, Granularity g2) throws CalendricSystemServiceException
CalendricSystemServiceException
public boolean isEquivalent(Granularity g1, Granularity g2) throws CalendricSystemServiceException
CalendricSystemServiceException
public boolean isFiner(Granularity g1, Granularity g2) throws CalendricSystemServiceException
CalendricSystemServiceException
public boolean isIncomparable(Granularity g1, Granularity g2) throws CalendricSystemServiceException
CalendricSystemServiceException
public void clearCaches()
|
tauZaman v0.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |