Class SimpleHomologeneBuilder
- java.lang.Object
-
- org.biojava.bio.program.homologene.SimpleHomologeneBuilder
-
- All Implemented Interfaces:
HomologeneBuilder
public class SimpleHomologeneBuilder extends Object implements HomologeneBuilder
A simple no-frills implementation of the HomologeneBuilder interface. Used to instantiate a in-memory copy of the Homologene data.- Author:
- David Huen
-
-
Field Summary
-
Fields inherited from interface org.biojava.bio.program.homologene.HomologeneBuilder
ACCESSION, CURATED, HOMOID, LOCUSID, MULTIPLE, PERCENTIDENTITY, REFERENCE, SIMILARITYTYPE, TAXONID, TWIN
-
-
Constructor Summary
Constructors Constructor Description SimpleHomologeneBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOrthologueProperty(String key, String value)add a property to the current OrthologuevoidaddOrthoPairProperty(String key, String value)add a property to the current OrthoPairvoidaddTitle(int taxonID, String homologeneID, String title)add title information to an Orthologue (this is not in enclosed in the Orthologue element because it comes completely separate in the Homologene data files.voidendDB()end of data for DBvoidendGroup()end of data for groupvoidendOrthologue()end of data for this OrthologuevoidendOrthoPair()end of data for this OrthoPairHomologeneDBgetDB()retrieve the DB that has just been builtvoidstartDB()indicates start of data for a HomologeneDBvoidstartGroup()indicates start of data for a OrthoPairSetvoidstartOrthologue()indicates start of data for an orthologuevoidstartOrthoPair()indicates start of data for an OrthoPair
-
-
-
Constructor Detail
-
SimpleHomologeneBuilder
public SimpleHomologeneBuilder()
-
-
Method Detail
-
startDB
public void startDB()
Description copied from interface:HomologeneBuilderindicates start of data for a HomologeneDB- Specified by:
startDBin interfaceHomologeneBuilder
-
startGroup
public void startGroup()
Description copied from interface:HomologeneBuilderindicates start of data for a OrthoPairSet- Specified by:
startGroupin interfaceHomologeneBuilder
-
startOrthoPair
public void startOrthoPair()
Description copied from interface:HomologeneBuilderindicates start of data for an OrthoPair- Specified by:
startOrthoPairin interfaceHomologeneBuilder
-
startOrthologue
public void startOrthologue()
Description copied from interface:HomologeneBuilderindicates start of data for an orthologue- Specified by:
startOrthologuein interfaceHomologeneBuilder
-
addOrthologueProperty
public void addOrthologueProperty(String key, String value)
Description copied from interface:HomologeneBuilderadd a property to the current Orthologue- Specified by:
addOrthologuePropertyin interfaceHomologeneBuilder
-
endOrthologue
public void endOrthologue()
Description copied from interface:HomologeneBuilderend of data for this Orthologue- Specified by:
endOrthologuein interfaceHomologeneBuilder
-
addOrthoPairProperty
public void addOrthoPairProperty(String key, String value)
Description copied from interface:HomologeneBuilderadd a property to the current OrthoPair- Specified by:
addOrthoPairPropertyin interfaceHomologeneBuilder
-
endOrthoPair
public void endOrthoPair()
Description copied from interface:HomologeneBuilderend of data for this OrthoPair- Specified by:
endOrthoPairin interfaceHomologeneBuilder
-
addTitle
public void addTitle(int taxonID, String homologeneID, String title)
Description copied from interface:HomologeneBuilderadd title information to an Orthologue (this is not in enclosed in the Orthologue element because it comes completely separate in the Homologene data files. Go figger.)- Specified by:
addTitlein interfaceHomologeneBuilder
-
endGroup
public void endGroup()
Description copied from interface:HomologeneBuilderend of data for group- Specified by:
endGroupin interfaceHomologeneBuilder
-
endDB
public void endDB()
Description copied from interface:HomologeneBuilderend of data for DB- Specified by:
endDBin interfaceHomologeneBuilder
-
getDB
public HomologeneDB getDB()
Description copied from interface:HomologeneBuilderretrieve the DB that has just been built- Specified by:
getDBin interfaceHomologeneBuilder
-
-