owltools.gaf.godb
Class Dumper

java.lang.Object
  extended by owltools.gaf.godb.Dumper
Direct Known Subclasses:
DatabaseDumper

public abstract class Dumper
extends Object

Generates a dump of a combined set of ontologies, annotations and related data Currently there is one implementing subclass, for dumping a relational database. In principle this could be extended to other dumps

Author:
cjm

Field Summary
protected  Set<GafDocument> gafdocs
           
protected  OWLGraphWrapper graph
           
protected  List<String> problems
           
protected  String targetDirectory
           
 
Constructor Summary
Dumper()
           
 
Method Summary
 void addGafDocument(GafDocument gd)
           
protected  void addProblem(String m)
           
abstract  void dump()
          dumps all data
 Set<GafDocument> getGafdocs()
           
 String getTargetDirectory()
           
 void reportProblems()
           
 void setGafdocs(Set<GafDocument> gafdocs)
           
 void setTargetDirectory(String targetDirectory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

graph

protected OWLGraphWrapper graph

targetDirectory

protected String targetDirectory

gafdocs

protected Set<GafDocument> gafdocs

problems

protected List<String> problems
Constructor Detail

Dumper

public Dumper()
Method Detail

getTargetDirectory

public String getTargetDirectory()
Returns:
dirname

setTargetDirectory

public void setTargetDirectory(String targetDirectory)
Parameters:
targetDirectory -

addGafDocument

public void addGafDocument(GafDocument gd)
Parameters:
gd -

getGafdocs

public Set<GafDocument> getGafdocs()
Returns:
set of Gafs loaded

setGafdocs

public void setGafdocs(Set<GafDocument> gafdocs)
Parameters:
gafdocs -

dump

public abstract void dump()
                   throws IOException,
                          ReferentialIntegrityException
dumps all data

Throws:
IOException
ReferentialIntegrityException

addProblem

protected void addProblem(String m)

reportProblems

public void reportProblems()


Copyright © 2010-2014. All Rights Reserved.