tauZaman
v0.1

tauzaman.field
Class FVTable

java.lang.Object
  |
  +--tauzaman.field.fvsupport.FVSupport
        |
        +--tauzaman.field.FVTable

public class FVTable
extends FVSupport

FVTable class represents a generic table class for Field Value tables.

Status:
Design complete, implementation not started

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
 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FVTable

public FVTable(java.net.URL url)
        throws FVFormationException
Constructs a FVTable object form a given label, url and a regex for this Table from Field Value Table XML file.

Parameters:
url - URL of actual information
Throws:
FVFormationException - if any problem happens during formation of field value table loading pointed by url
See Also:
CalendricSystem
Method Detail

stringToIndex

public long stringToIndex(java.lang.String string)
                   throws FVServiceException
Converts a given string to corresponding index.
 Given January for Gregorian calendar and using 
 a table called "EnglishMonthNames", this method returns
 1 as the index of January.
 

Specified by:
stringToIndex in class FVSupport
Parameters:
string - string representation of input
Returns:
long which is corresponding index of a string
Throws:
FVServiceException - if any problem occurs during process of field value table method
See Also:
indexToString(long)

indexToString

public java.lang.String indexToString(long index)
                               throws FVServiceException
Converts a given long to corresponding string.
 Given 1 for Gregorian calendar and using 
 a table called "EnglishMonthNames", this method returns
 January as the string corresponding of 1.
 

Specified by:
indexToString in class FVSupport
Parameters:
index - long representation of input
Returns:
String string corresponding of long index
Throws:
FVServiceException - if any problem occurs during process of field value table method
See Also:
stringToIndex(java.lang.String)

toString

public java.lang.String toString()
toString method, which produces string representation of this FVTable.

Specified by:
toString in class FVSupport
Returns:
a String, which is a representation of this FVTable

tauZaman
v0.1

Submit a bug or feature

tauZaman is an open-source, publicly avaliable project