|
tauZaman v0.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--tauzaman.calendar.mapping.Mapping
|
+--tauzaman.calendar.IrregularMapping
IrregularMapping class represents the irregular
granularity mapping information of a Calendar.
For example;
< granularity name = "month" >
< irregularMapping from = "day" url = ".../classname.class" >
< method name = "gregCastMonthToDay" />
< method name = "gregCastDayToMonth" />
< method name = "gregScaleMonthToDay" />
< /irregularmapping >
< /granularity >
Calendar,
Mapping,
Granularity| Field Summary |
| Fields inherited from class tauzaman.calendar.mapping.Mapping |
COARSER_TO_FINER, CONGRUENT, FINER_TO_COARSER |
| Constructor Summary | |
IrregularMapping(Granularity to,
Granularity from,
int relationship,
java.net.URL url,
org.w3c.dom.Element root)
Constructs an IrregularMapping object, which allocates memory
for method names and urls. |
|
| Method Summary | |
java.net.URL |
getUrl()
Returns irregular mapping implementation url. |
long |
performAnchoredCast(long point)
Casts a given anchored point. |
long[] |
performAnchoredScale(long point)
Scales a given anchored point. |
long |
performUnanchoredCast(long point)
Casts a given unanchored point. |
long[] |
performUnanchoredScale(long point)
Scales a given unanchored point. |
java.lang.String |
toString()
Returns a String representing this IrregularMapping object. |
| Methods inherited from class tauzaman.calendar.mapping.Mapping |
equals, fetchRelationship, getFrom, getRelationship, getTo |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public IrregularMapping(Granularity to,
Granularity from,
int relationship,
java.net.URL url,
org.w3c.dom.Element root)
throws IrregularMappingFormationException
IrregularMapping object, which allocates memory
for method names and urls.
to - Granularity, which IrregularMapping is declared tofrom - Granularity, which IrregularMapping is declared fromrelationship - int between the Granularities of this IrregularMappingurl - URL of irregular method implementationsroot - DOM Element, which points to IrregularMapping information of
corresponding xml specification file.
IrregularMappingFormationException - if any abnormal condition occurs when
parsing a IrregularMapping| Method Detail |
public long performAnchoredCast(long point)
performAnchoredCast in class Mappingpoint - point in time to be casted
public long[] performAnchoredScale(long point)
performAnchoredScale in class Mappingpoint - point in time to be scaled
public long performUnanchoredCast(long point)
performUnanchoredCast in class Mappingpoint - point in time to be casted
public long[] performUnanchoredScale(long point)
performUnanchoredScale in class Mappingpoint - point in time to be scaled
public java.net.URL getUrl()
public java.lang.String toString()
IrregularMapping object.
toString in class MappingIrregularMapping
|
tauZaman v0.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||