|
tauZaman v0.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--tauzaman.field.fvsupport.FVSupport
|
+--tauzaman.field.FVTable
FVTable class represents a generic table
class for Field Value tables.
| Field Summary | |
private java.util.Hashtable |
fvtableIndexToString
A Hashtable, whose keys are indexes as String and values are string |
private java.util.Hashtable |
fvtableStringToIndex
A Hashtable, whose keys are strings and values are indexes as String |
| Fields inherited from class tauzaman.field.fvsupport.FVSupport |
regex, url |
| Constructor Summary | |
FVTable(java.net.URL url)
Constructs a FVTable object form a given label, url and
a regex for this Table from Field Value Table XML file. |
|
| Method Summary | |
private void |
formFVTable()
Forms a FVTable from url, which contains an xml file that includes actual content of this FVTable. |
java.lang.String |
indexToString(long index)
Converts a given long to corresponding string. |
long |
stringToIndex(java.lang.String string)
Converts a given string to corresponding index. |
java.lang.String |
toString()
toString method, which produces string representation of this FVTable. |
| Methods inherited from class tauzaman.field.fvsupport.FVSupport |
getRegex, getUrl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private java.util.Hashtable fvtableIndexToString
private java.util.Hashtable fvtableStringToIndex
| Constructor Detail |
public FVTable(java.net.URL url)
throws FVFormationException
FVTable object form a given label, url and
a regex for this Table from Field Value Table XML file.
url - URL of actual information
FVFormationException - if any problem happens during formation of
field value table loading pointed by urlCalendricSystem| Method Detail |
private void formFVTable()
throws FVFormationException
FVTable.
FVFormationException - if any problem happens during formation of
field value table loading pointed by url
public long stringToIndex(java.lang.String string)
throws FVServiceException
Given January for Gregorian calendar and using a table called "EnglishMonthNames", this method returns 1 as the index of January.
stringToIndex in class FVSupportstring - string representation of input
FVServiceException - if any problem occurs during process
of field value table methodindexToString(long)
public java.lang.String indexToString(long index)
throws FVServiceException
Given 1 for Gregorian calendar and using a table called "EnglishMonthNames", this method returns January as the string corresponding of 1.
indexToString in class FVSupportindex - long representation of input
FVServiceException - if any problem occurs during process
of field value table methodstringToIndex(java.lang.String)public java.lang.String toString()
FVTable.
toString in class FVSupportFVTable
|
tauZaman v0.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||