|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.edsdev.jconvert.persistence.DataLoader
This class is responsible for creating ConversionTypes by loading data from the data files that contain the
specifiactions.
Here is an example of the datafile format:
Constructor Summary | |
DataLoader()
|
Method Summary | |
java.util.List |
loadData()
This method will load data from convert.dat and convert_custom.dat. |
java.util.List |
loadData(java.lang.String resourceName,
boolean generateGaps,
java.util.List existingConversionTypes)
This method is responsible for loading data from a resource into a list. |
static void |
main(java.lang.String[] args)
|
void |
unloadData(java.util.List domainData,
java.lang.String outputFileName)
Writes the List of ConversionTypes to output.dat. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DataLoader()
Method Detail |
public static void main(java.lang.String[] args)
public java.util.List loadData()
public java.util.List loadData(java.lang.String resourceName, boolean generateGaps, java.util.List existingConversionTypes)
resourceName
- String name of the resource that has the data to be loadedgenerateGaps
- boolean that indicates whether or not to spend time generating missing conversions. This is
needed because generating these gaps takes significant time and the default conversions that are supplied
will have all combinatorics created before handexistingConversionTypes
- List of existing conversion types that will be used in aiding generation of
missing conversion types.
public void unloadData(java.util.List domainData, java.lang.String outputFileName)
domainData
- List of ConversionTypes
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |