|
tauZaman v0.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--tauzaman.io.Input
Input class handles conversion of temporal constants to
timestamps.
| Field Summary | |
private CalendricSystem |
activeCalendricSystem
A handle to CalendricSystem, which is the active
CalendricSystem of parent TauZamanLocalService. |
private PropertyManager |
activePropertyManager
A handle to PropertyManager, which is the active
PropertyManager of parent TauZamanLocalService.
|
private Fields |
fields
|
private FVSupportRepository |
fvsr
A handle to FVSupportRepository of parent TauZamanSystem |
private boolean |
whitespace
|
| Constructor Summary | |
Input(CalendricSystem activeCalendricSystem,
PropertyManager activePropertyManager,
FVSupportRepository fvsr)
Constructs an Input object. |
|
| Method Summary | |
private void |
fillInFields(java.lang.String input,
java.lang.String format)
Fetches useful information from input according to information in format. |
Granule[] |
parseInput(java.lang.String input,
java.lang.String propertyName)
Returns formed Granule(s) given a temporal constant and
name of the Property to be used. |
private void |
parseInputInternal(org.w3c.dom.Element input,
org.w3c.dom.Element format)
Traverses two DOM trees (parsed from temporal constant and Property's Format) and checks whether they
match. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private boolean whitespace
private Fields fields
private CalendricSystem activeCalendricSystem
CalendricSystem, which is the active
CalendricSystem of parent TauZamanLocalService.
private PropertyManager activePropertyManager
PropertyManager, which is the active
PropertyManager of parent TauZamanLocalService.
Active PropertyManager means the PropertyManager.
which corresponds to active CalendricSystem.
private FVSupportRepository fvsr
FVSupportRepository of parent TauZamanSystem
| Constructor Detail |
public Input(CalendricSystem activeCalendricSystem,
PropertyManager activePropertyManager,
FVSupportRepository fvsr)
Input object.
activeCalendricSystem - A handle to CalendricSystem, which is the active
CalendricSystem of parent TauZamanLocalServiceactivePropertyManager - A handle to PropertyManager, which is the active
PropertyManager of parent TauZamanLocalServicefvsr - A handle to FVSupportRepository of parent TauZamanSystem| Method Detail |
public Granule[] parseInput(java.lang.String input,
java.lang.String propertyName)
throws IOException
Granule(s) given a temporal constant and
name of the Property to be used.
input - String temporal constantpropertyName - String name of the Property
Granule objects
IOException - if any abnormal condition occurs when parsing
input and forming Granule(s)
private void parseInputInternal(org.w3c.dom.Element input,
org.w3c.dom.Element format)
throws IOException
Traverses two DOM trees (parsed from temporal constant and
Property's Format) and checks whether they
match. During this operation it also fetches useful information from
temporal constant.
In this sense, this operation has two phases concurrently; first matching phase, where structure of two DOM trees are checked, and second fetching phase, where information in input DOM tree is fetched using information in format DOM tree.
input - root Element of DOM parsed inputformat - root Element of DOM parsed format
IOException - if any abnormal condition occurs during the matching or
fetching process of input
private void fillInFields(java.lang.String input,
java.lang.String format)
throws IOException
input - String part of (either Attr values or Text values) DOM parsed temporal constantformat - String part of (either Attr values or Text values) DOM parsed format
IOException - if any abnormal condition occurs during
fetching process of input
|
tauZaman v0.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||