|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectxml2fol.OLEngine
public class OLEngine
A class that abstractly handles the processing of passages within documents The class is able to load information from the tables on disk regardless of the type of table saved.
Constructor Summary | |
---|---|
OLEngine(java.lang.String fxolFilename,
java.lang.String tableFlag)
Produces a OLEngine with the specified table filename, table flag and stores values both in the map and list. |
|
OLEngine(java.lang.String fxolFilename,
java.lang.String idxFilename,
java.lang.String tableFlag)
Produces a OLEngine with the specified table filename, index filename, table flag and stores values both in the map and list |
|
OLEngine(java.lang.String fxolFilename,
java.lang.String idxFilename,
java.lang.String tableFlag,
boolean storeMap,
boolean storeList)
Produces a OLEngine with the specified table filename, index filename, table flag and store map/list values |
Method Summary | |
---|---|
void |
ClearIndex()
Clears the index |
void |
ClearList()
Clears the table |
void |
Close()
Clears the table and index files |
boolean |
FilesExist()
|
java.lang.String |
GetListToString()
Returns the entire list as a string |
OLStruct |
getRecordUsingTable(java.lang.String file,
java.lang.String xpath)
Gets the offset and length for a particular element |
void |
LoadIndex()
Loads the index |
void |
LoadList()
Loads the table into memory |
void |
LoadSingleList(java.lang.String file)
Loads the table for a single file into memory NB Index needs to be loaded for the function to be able to load the details of a single document |
void |
Open()
Opens the table and index files |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OLEngine(java.lang.String fxolFilename, java.lang.String tableFlag)
fxolFilename
- - the filename of the tabletableFlag
- - a flag indicating the type of table to be saved/loadedpublic OLEngine(java.lang.String fxolFilename, java.lang.String idxFilename, java.lang.String tableFlag)
fxolFilename
- - the filename of the tableidxFilename
- - the filename of the indextableFlag
- - a flag indicating the type of table to be saved/loadedpublic OLEngine(java.lang.String fxolFilename, java.lang.String idxFilename, java.lang.String tableFlag, boolean storeMap, boolean storeList)
fxolFilename
- - the filename of the tableidxFilename
- - the filename of the indextableFlag
- - a flag indicating the type of table to be saved/loadedstoreMap
- - a flag indicating if values should be stored in the MapstoreList
- - a flag indicating if values should be stored in the ListMethod Detail |
---|
public void Open()
public void Close()
public void ClearList()
public void ClearIndex()
public void LoadIndex()
public void LoadList()
public boolean FilesExist()
public void LoadSingleList(java.lang.String file)
file
- - the filename of the XML document to loadpublic OLStruct getRecordUsingTable(java.lang.String file, java.lang.String xpath)
file
- - The element's filenamexpath
- - The element's xpathpublic java.lang.String GetListToString()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |