|
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.FVFunction
FVFunction
class represents a generic table
class for Field Value functions.
ClassLoaderMethodCaller
Field Summary | |
private ClassLoaderMethodCaller |
clmc
An instance of ClassLoaderMethodCaller , which will provide
access to field value functions, which are loaded dynamically. |
Fields inherited from class tauzaman.field.fvsupport.FVSupport |
regex, url |
Constructor Summary | |
FVFunction(java.net.URL url)
Constructs a FVFunction object form a given label, url and
a regex for this Function strings from Field Value Function XML file. |
Method Summary | |
private void |
formFVFunction()
Forms a FVFunction from url, which contains a java class file that includes actual content of this FVFunction . |
java.lang.String |
indexToString(long index)
Converts a given integer 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 FVFunction . |
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 ClassLoaderMethodCaller clmc
ClassLoaderMethodCaller
, which will provide
access to field value functions, which are loaded dynamically.
Constructor Detail |
public FVFunction(java.net.URL url) throws FVFormationException
FVFunction
object form a given label, url and
a regex for this Function strings from Field Value Function XML file.
url
- URL of actual information
FVFormationException
- if any problem happens during formation of
dynamic class loading pointed by urlCalendricSystem
Method Detail |
private void formFVFunction() throws FVFormationException
FVFunction
.
FVFormationException
- if any problem happens during formation of
dynamic class loading pointed by urlpublic 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 FVSupport
string
- string representation of input
FVServiceException
- if any problem occurs during process
of dynamically loaded 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 FVSupport
index
- integer representation of input
FVServiceException
- if any problem occurs during process
of dynamically loaded methodstringToIndex(java.lang.String)
public java.lang.String toString()
FVFunction
.
toString
in class FVSupport
FVFunction
|
tauZaman v0.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |