|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.ebi.adfconverter.tools.checker.DatabaseChecker
Checking for database stuff will check database tags and database accesion number In Approved db file structure, the item name are: DB tag item - DBTag database link item - URI$ database name - DBName regex - ACCRegex
| Constructor Summary | |
DatabaseChecker()
Default Constructor with a default DatabaseChecker with a default DB file path: etc/checking/public_DB_Accnos.xls |
|
DatabaseChecker(java.lang.String DBFileStructureDescriptionFileName,
java.lang.String approvedDBFile,
java.lang.String nameLinkSeparator,
boolean _isAccessionNumberCheckingEnable)
Constructor with a given approved DB file, approved DB file structure xml file,and the separator between DB name and web link retrieved from workbook |
|
| Method Summary | |
static void |
addApprouvedDBFile(java.lang.String DBFile)
DBFileStructureDescriptionFileName is the same of all DBfile loaded duriing execution |
static boolean |
checkDBAccNumber(ADFConverterLogger log,
java.lang.String tag,
java.lang.String AccNumber)
Checks if an Accession is correct (regex matching) according to the database tag additional information will be added during MAGE object creation |
static DataBuffer |
checkDBTag(ADFConverterLogger log,
DataBuffer tag,
boolean doCuration,
java.util.ArrayList userDefinedTags,
boolean isStrictChecking)
Checks if a DB tag is an approved Databases or a userdefined one. |
static java.lang.String |
getDBComment(java.lang.String dbTag)
retrieves the comment for a given DBTag |
static java.lang.String |
getDBName(java.lang.String dbTag)
retrieves the database name for a given DBTag |
static java.lang.String |
getDBURI(java.lang.String dbTag)
retrieves the URI for a given DBTag |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DatabaseChecker()
throws IncorrectDataBaseInit
IncorrectDataBaseInit - if an errors occurs during checker initialisation
public DatabaseChecker(java.lang.String DBFileStructureDescriptionFileName,
java.lang.String approvedDBFile,
java.lang.String nameLinkSeparator,
boolean _isAccessionNumberCheckingEnable)
throws IncorrectDataBaseInit
DBFileStructureDescriptionFileName - path to the file describing the approvd DB file structureapprovedDBFile - path to the approved database filenameLinkSeparator - separator between name and link in the DB table_isAccessionNumberCheckingEnable -
IncorrectDataBaseInit| Method Detail |
public static void addApprouvedDBFile(java.lang.String DBFile)
throws IncorrectDataBaseInit
DBFile -
IncorrectDataBaseInit - if an error occurs during checker initialisation
TODO deal with files with different data structure
public static boolean checkDBAccNumber(ADFConverterLogger log,
java.lang.String tag,
java.lang.String AccNumber)
log - logger to report comment into.tag - the tag of the DatabaseAccNumber - the accession to check
public static DataBuffer checkDBTag(ADFConverterLogger log,
DataBuffer tag,
boolean doCuration,
java.util.ArrayList userDefinedTags,
boolean isStrictChecking)
log - the logger for the checked file:tag - the tag to checkdoCuration - if a curation is done on the taguserDefinedTags - the list of databases defined by the userisStrictChecking - if the checking is strict or relax
public static java.lang.String getDBComment(java.lang.String dbTag)
dbTag - the given Database tag
public static java.lang.String getDBName(java.lang.String dbTag)
dbTag - the given Database tag
public static java.lang.String getDBURI(java.lang.String dbTag)
dbTag - the given Database tag
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||