|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.ebi.adfconverter.tools.checker.OptimizedFileChecker
Checks data tables in an optimized way ( memory, CPU) Data tables are checked row by row.
| Constructor Summary | |
OptimizedFileChecker()
Constructor |
|
| Method Summary | |
boolean |
checkCurrentRowFieldDependance(java.util.Hashtable itemTable)
Checks dependances between fields of a row. |
java.util.ArrayList |
checkDocument(java.io.File file,
java.lang.String structureFile,
boolean strictMode,
boolean stepByStepMode,
boolean doCuration)
Checks a file against a document structure (contains in a XML file) |
boolean |
checkFile(java.io.File file,
java.lang.String structureFile,
boolean strictMode,
boolean stepByStepMode,
boolean doCuration)
|
boolean |
checkFile(java.io.File file,
java.lang.String structureFile,
java.lang.String structureName,
boolean strictMode,
boolean stepByStepMode,
boolean doCuration)
|
CorrectableDataTable |
checkFileAndCurate(java.io.File checkFile,
java.lang.String fileStructure,
boolean strictMode,
boolean stepByStepMode)
Checks and curates a data file. |
CorrectableDataTable |
checkFileAndCurate(java.io.File checkFile,
java.lang.String fileStructure,
java.lang.String structureName,
boolean strictMode,
boolean stepByStepMode)
Checks and curates a data file. |
boolean |
checkFileData(java.io.File file,
java.lang.String structureFile,
java.lang.String structureName,
boolean strictMode,
boolean stepByStepMode,
boolean doCuration)
|
boolean |
checkVerticalDataTable(DataTable dataTable,
HeaderType header,
boolean strictMode,
boolean doCuration,
boolean stepByStepMode)
checks a vertical data table against a structure file The whole table is checked ( not row by row) |
static java.lang.String |
convert2Regex(java.lang.String regex)
Characters // x The character x // \\ The backslash character // \0n The character with octal value 0n (0 <= n <= 7) // \0nn The character with octal value 0nn (0 <= n <= 7) // \0mnn The character with octal value 0mnn (0 <= m <= 3, 0 <= n <= 7) // \xhh The character with hexadecimal value 0xhh //// \ uhhhh The character with hexadecimal value 0xhhhh // \t The tab character (' ') // \n The newline (line feed) character (' ') // \r The carriage-return character (' ') // \f The form-feed character (' ') // \a The alert (bell) character ('') // \e The escape character ('') // \cx The control character corresponding to x // Character classes // [abc] a, b, or c (simple class) // [^abc] Any character except a, b, or c (negation) // [a-zA-Z] a through z or A through Z, inclusive (range) // [a-d[m-p]] a through d, or m through p: [a-dm-p] (union) // [a-z&&[def]] d, e, or f (intersection) // [a-z&&[^bc]] a through z, except for b and c: [ad-z] (subtraction) // [a-z&&[^m-p]] a through z, and not m through p: [a-lq-z](subtraction) // Predefined character classes // . |
CorrectableDataTable |
getCuratedTable()
Retrieves the curated data table for the current data file |
static void |
main(java.lang.String[] argv)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OptimizedFileChecker()
| Method Detail |
public boolean checkCurrentRowFieldDependance(java.util.Hashtable itemTable)
itemTable - list of none empty fields in a row
public java.util.ArrayList checkDocument(java.io.File file,
java.lang.String structureFile,
boolean strictMode,
boolean stepByStepMode,
boolean doCuration)
file - data file to checkstructureFile - the structure file containing the structure definitionstrictMode - true, if the strict checking mode is enabled. false, otherwisestepByStepMode - true, if the strict checking mode is enabled. false, otherwise
public boolean checkFile(java.io.File file,
java.lang.String structureFile,
boolean strictMode,
boolean stepByStepMode,
boolean doCuration)
public boolean checkFile(java.io.File file,
java.lang.String structureFile,
java.lang.String structureName,
boolean strictMode,
boolean stepByStepMode,
boolean doCuration)
public CorrectableDataTable checkFileAndCurate(java.io.File checkFile,
java.lang.String fileStructure,
boolean strictMode,
boolean stepByStepMode)
throws ErrorInitLog,
IncorrectFile,
IncorrectFileStructure,
java.io.IOException,
IncorrectDataTableException,
IncorrectDataFile
checkFile - path to the data filefileStructure - file describing the structure of the data filestrictMode - if the checking is strictstepByStepMode - if checking is done step by step
ErrorInitLog - if an error occurs during logger initialisation
IncorrectFile - if the data file is incorrect
IncorrectFileStructure - if the structure file is incorrect
java.io.IOException - if an error occurs during file access
IncorrectDataTableException - if an error occurs
IncorrectDataFile - if the data file is incorrect
public CorrectableDataTable checkFileAndCurate(java.io.File checkFile,
java.lang.String fileStructure,
java.lang.String structureName,
boolean strictMode,
boolean stepByStepMode)
throws ErrorInitLog,
IncorrectFile,
IncorrectFileStructure,
java.io.IOException,
IncorrectDataTableException,
IncorrectDataFile
checkFile - path to the data filefileStructure - file describing the structure of the data filestrictMode - if the checking is strictstepByStepMode - if checking is done step by step
ErrorInitLog - if an error occurs during logger initialisation
IncorrectFile - if the data file is incorrect
IncorrectFileStructure - if the structure file is incorrect
java.io.IOException - if an error occurs during file access
IncorrectDataTableException - if an error occurs
IncorrectDataFile - if the data file is incorrect
public boolean checkFileData(java.io.File file,
java.lang.String structureFile,
java.lang.String structureName,
boolean strictMode,
boolean stepByStepMode,
boolean doCuration)
public boolean checkVerticalDataTable(DataTable dataTable,
HeaderType header,
boolean strictMode,
boolean doCuration,
boolean stepByStepMode)
throws IncorrectFileStructure,
IncorrectDataTableException
dataTable - the data table to checkheader - the structure definition of the table header (header information)doCuration - true, if data are curated and export in a filestrictMode - checking in strictmodestepByStepMode - define step by step mode. null, otherwise.
ErrorInitLog - if an error occurs during the logger initialisation
IncorrectFile - if a file is incorrect.
IncorrectFileStructure - if the structure definition file is incorrect
java.io.IOException - if an error occurs during file access.
IncorrectDataTableException - if the data table is incorrectpublic static java.lang.String convert2Regex(java.lang.String regex)
regex - the regex to convert
public CorrectableDataTable getCuratedTable()
public static void main(java.lang.String[] argv)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||