|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.ebi.adfconverter.library.ADFConverterLibrary
This class is a library, it gathers methods to treat data file (MAGE-ML & ADF) It offers tool initialisation methods, data file treatment, ADF checking and conversion, MAGE-ML checking and conversion.
| Constructor Summary | |
ADFConverterLibrary(java.lang.String ConfigurationFilePath,
java.util.Properties parameters)
Contructor for the ADFConverterLibrary class Inits the application |
|
| Method Summary | |
boolean |
adfHandler(java.io.File file,
boolean strictMode,
boolean stepByStepMode)
Manages ADF - file or directory For checking only or checking and conversion |
boolean |
check(java.lang.String filename,
boolean strictMode,
boolean stepByStepMode,
boolean saveCuratecADF,
boolean convert)
Check a file following its name (file extension) |
boolean |
checkADF(java.io.File ADFFile,
boolean strictMode,
boolean stepByStepMode,
boolean saveCuration,
boolean convert)
Check and convert in MAGE-ML a ADF following its name or its ADF adh file |
boolean |
checkADFDirectory(java.io.File ADFFile,
boolean strictMode,
boolean stepByStepMode,
boolean saveCuratedADF,
boolean convert)
Check and convert in MAGE-ML a ADF following its name or its ADF adh file |
boolean |
checkADFFile(java.io.File ADFFile,
boolean strictMode,
boolean stepByStepMode,
boolean saveCuration,
boolean convertToMAGE)
Check and convert in MAGE-ML a ADF following its name or its ADF adh file |
boolean |
checkAndConvert(java.lang.String filename,
boolean strictMode,
boolean stepByStepMode,
boolean saveCuratecADF)
Check a file following its name (file extension) |
boolean |
checkAndConvertADF(java.io.File ADFFile,
boolean strictMode,
boolean stepByStepMode,
boolean saveCuration)
Check and convert in MAGE-ML a ADF following its name or its ADF adh file |
boolean |
checkAndConvertADFDirectory(java.io.File ADFFile,
boolean strictMode,
boolean stepByStepMode,
boolean saveCuratedADF)
Check and convert in MAGE-ML a ADF following its name or its ADF adh file |
boolean |
checkAndConvertADFFile(java.io.File ADFFile,
boolean strictMode,
boolean stepByStepMode,
boolean saveCuratedADF)
Check and convert in MAGE-ML a ADF following its name or its ADF adh file |
boolean |
checkMAGEML(java.io.File file,
boolean strictMode,
boolean stepByStepMode,
boolean convert)
Check / check & convert a MAGE-ML file |
void |
clean()
Cleans th application (memory) Calls garbage collector |
void |
convertCurrentADF()
Converts the current checked and correct ADF in MAGEObject. |
void |
exportCurrentMAGEML()
export the current checked and correct ADF in MAGE-ML. |
void |
sortADF(java.lang.String DirectoryName)
sorts ADF in a directory. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ADFConverterLibrary(java.lang.String ConfigurationFilePath,
java.util.Properties parameters)
throws LibraryException
ConfigurationFilePath - parameters - configuration properties overriding configuration file properties.
LibraryException, - if an error occurs during library initialisation
LibraryException| Method Detail |
public boolean adfHandler(java.io.File file,
boolean strictMode,
boolean stepByStepMode)
file - The ADF file to treatstrictMode - checking in strictmodestepByStepMode - checking in step by step mod (stop process at any error)
public boolean check(java.lang.String filename,
boolean strictMode,
boolean stepByStepMode,
boolean saveCuratecADF,
boolean convert)
filename - the name of a file to check/convertstrictMode - if the checking is executed strictlystepByStepMode - if the checking is executed step by step/ one error at timesaveCuratecADF - save curated ADF after checking and curation
public boolean checkADF(java.io.File ADFFile,
boolean strictMode,
boolean stepByStepMode,
boolean saveCuration,
boolean convert)
ADFFile - the name of the ADF or the adh file namestrictMode - if the checking is executed strictlystepByStepMode - if the checking is executed step by step/ one error at timesaveCuration - save curated ADF after checking and curation
public boolean checkADFDirectory(java.io.File ADFFile,
boolean strictMode,
boolean stepByStepMode,
boolean saveCuratedADF,
boolean convert)
ADFFile - the ADF name file or the adh filestrictMode - if the checking is executed strictlystepByStepMode - if the checking is executed step by step/ one error at timesaveCuratedADF - true, if curated ADF will be saved after checking and curation
public boolean checkADFFile(java.io.File ADFFile,
boolean strictMode,
boolean stepByStepMode,
boolean saveCuration,
boolean convertToMAGE)
ADFFile - the file object of the ADF or of the adh filestrictMode - if the checking is executed strictlystepByStepMode - if the checking is executed step by step/ one error at time
public boolean checkAndConvert(java.lang.String filename,
boolean strictMode,
boolean stepByStepMode,
boolean saveCuratecADF)
filename - the name of a file to check/convertstrictMode - if the checking is executed strictlystepByStepMode - if the checking is executed step by step/ one error at timesaveCuratecADF - if the curated ADF will be saved aftercheckinhg
public boolean checkAndConvertADF(java.io.File ADFFile,
boolean strictMode,
boolean stepByStepMode,
boolean saveCuration)
ADFFile - the file representing the ADF or the adh file namestrictMode - if the checking is executed strictlystepByStepMode - if the checking is executed step by step/ one error at timesaveCuration - save curated ADF after checking and curation
public boolean checkAndConvertADFDirectory(java.io.File ADFFile,
boolean strictMode,
boolean stepByStepMode,
boolean saveCuratedADF)
ADFFile - the ADF name file or the adh filestrictMode - if the checking is executed strictlystepByStepMode - if the checking is executed step by step/ one error at timesaveCuratedADF - true, if curated ADF will be saved after checking and curation
public boolean checkAndConvertADFFile(java.io.File ADFFile,
boolean strictMode,
boolean stepByStepMode,
boolean saveCuratedADF)
ADFFile - the file object of the ADF or the adh file namestrictMode - if the checking is executed strictlystepByStepMode - if the checking is executed step by step/ one error at time
public boolean checkMAGEML(java.io.File file,
boolean strictMode,
boolean stepByStepMode,
boolean convert)
file - the MAGE-Ml filestrictMode - if the checking is strict or relaxstepByStepMode - if th checking is done step by step (stop after each error)convert - if the the file will be convert after the checking
public void clean()
public void convertCurrentADF()
public void exportCurrentMAGEML()
public void sortADF(java.lang.String DirectoryName)
DirectoryName - directory path to sort.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||