|
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
FVSupport
abstrat class represents a generic field value
support information, that provides two basic functionality when converting
temporal constant strings to timestamps or vice versa.
One of them is called indexToString, which converts indices, such as 1, to corresponding string, such as January in english month names. The other functionality is called stringToIndex, and it does opposite of what indexToString does. Given January, for example, it converts it to corresponding index, which is 1 in again english month names.
This class is used as a base class for FVTable
and
FVFunction
classes.
Field Summary | |
protected java.lang.String |
regex
regex for this structure, that will be used to parse input string |
protected java.net.URL |
url
url of this structure, which contains actual conversion informatio |
Constructor Summary | |
FVSupport()
|
Method Summary | |
java.lang.String |
getRegex()
Returns regex for this field value if it exists. |
java.net.URL |
getUrl()
Returns url for this field value if it exists. |
abstract java.lang.String |
indexToString(long index)
Converts a given long to corresponding string. |
abstract long |
stringToIndex(java.lang.String string)
Converts a given string to corresponding index. |
abstract java.lang.String |
toString()
Returns a String representation of this FVSupport .
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.net.URL url
protected java.lang.String regex
Constructor Detail |
public FVSupport()
Method Detail |
public abstract 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.
string
- string representation of input
FVServiceException
- if any problem occurs during process
of this field value support methodFVTable.indexToString(long)
,
FVFunction.indexToString(long)
public abstract 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.
index
- long representation of input
FVServiceException
- if any problem occurs during process
of this field value support methodFVTable.stringToIndex(java.lang.String)
,
FVFunction.stringToIndex(java.lang.String)
public java.lang.String getRegex()
public java.net.URL getUrl()
public abstract java.lang.String toString()
FVSupport
.
String is formed with the label and url of this FVSupport
toString
in class java.lang.Object
FVSupport
|
tauZaman v0.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |