|
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
Calendars' Epochs 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)
|
void |
clearCaches()
|
Calendar[] |
getAllCalendars()
Returns all Calendars 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 |
GranularityLattice |
getGranularityLattice()
|
Mapping[] |
getMappings()
Returns Mappings of this
CalendricSystem. |
Calendar[] |
getOrderedCalendars(Property overrideInputOrderProperty)
Returns an array of ordered list of Calendars 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)
|
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 Calendars
CalendricSystemFormationException - if any error occurs while forming
CalendricSystem from given URL| Method Detail |
public java.net.URL getUrl()
CalendricSystem's specification file.
CalendricSystempublic Calendar[] getAllCalendars()
Calendars in this CalendricSystem.
Calendarspublic java.lang.String getDefaultRegex()
CalendricSystem
public Mapping[] getMappings()
Mappings of this
CalendricSystem.
Mappingspublic Granularity getDefaultGranularity()
Granularity of this CalendricSystem.
Granularity, which is the default Granularity
public Calendar[] getOrderedCalendars(Property overrideInputOrderProperty)
throws CalendricSystemServiceException
Calendars for converting
a temporal data type to corresponding output string.
overrideInputOrderProperty - Property that will be used
when forming an ordered input calendar list
Calendars
CalendricSystemServiceException - if any problem occurs when forming
an ordered Calendar listpublic java.lang.String toString()
CalendricSystem.
toString in class java.lang.Objectpublic GranularityLattice getGranularityLattice()
public Calendar getCalendar(java.lang.String calendarName)
public Granule castDeterminantInstant(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
CalendricSystemServiceExceptionpublic void clearCaches()
|
tauZaman v0.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||