|
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 | |
private ClassLoaderMethodCaller |
clmc
Instance of ClassLoaderMethodCaller, which keeps
dynamically loaded classes by this IrregularMapping |
private java.util.Hashtable |
methodBehaviorTypeToNames
A Hashtable relates type and behavior of methods to method names. |
private java.net.URL |
url
URL that points either to a (.jar file | directory) or a class file |
| Fields inherited from class tauzaman.calendar.mapping.Mapping |
COARSER_TO_FINER, CONGRUENT, FINER_TO_COARSER, from, relationship, to |
| 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 | |
private void |
formIrregularMapping(org.w3c.dom.Element root)
Forms an IrregularMapping object by parsing a xml specification file. |
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. |
private void |
testPerformMappings()
Tests mappings when constructed... |
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 |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private java.util.Hashtable methodBehaviorTypeToNames
IrregularMapping can only belong to one of these types.
Keys are behavior+type names, "anchoredscale", "unachoredscale", "anchoredcast",
"unanchoredcast" and values are method names.
private java.net.URL url
private ClassLoaderMethodCaller clmc
ClassLoaderMethodCaller, which keeps
dynamically loaded classes by this IrregularMapping
| 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 |
private void formIrregularMapping(org.w3c.dom.Element root)
throws IrregularMappingFormationException
IrregularMapping object by parsing a xml specification file.
root - DOM Element, which points to IrregularMapping information of
corresponding xml specification file.
IrregularMappingFormationException - if any abnormal condition occurs when
parsing a IrregularMappingprivate void testPerformMappings()
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 | |||||||||