|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectphenote.dataadapter.OntologyDataAdapter
public class OntologyDataAdapter
is this really a data adapter? - OntologyLoader? this isnt a data adapter it doesnt load & commit character data - just loads ontologies. rename OntologyLoader for now can stay in dataadapter package this is specifically a OboFileLoader - other kinds of ontology loading may com along OntologyDataAdapter and OntologyDataAdapter2 desperately need to be merged! theres a lot of cut&paste code between them and maintaining both is very tedious the parts that are different in ODA2 should just be done with a flag, the duplicated classes is not the way to go
| Method Summary | |
|---|---|
static OntologyDataAdapter |
getInstance()
synchronized so cant reload an ontology while ontologies are being initialized getInstance calls initOntologies - in other words you have to call getInstance to initialize the ontologies |
long |
getOboDate(java.net.URL oboUrl)
Get the date of the file from the header of the obo file - just read header dont read in whole file. |
static void |
initialize()
just calls getInstance - but more intuitive for initialization |
void |
reloadOntologies()
The ontology has been determined to be out of date (by quartz) and thus directed to reload itself from its file - in other words there is a new obo file to load in place of old one |
static void |
reset()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static OntologyDataAdapter getInstance()
public static void reset()
public static void initialize()
public long getOboDate(java.net.URL oboUrl)
throws OntologyException
OntologyException
public void reloadOntologies()
throws OntologyException
OntologyException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||