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 void
addOrthologueProperty(String key, String value)
add a property to the current Orthologuevoid
addOrthoPairProperty(String key, String value)
add a property to the current OrthoPairvoid
addTitle(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.void
endDB()
end of data for DBvoid
endGroup()
end of data for groupvoid
endOrthologue()
end of data for this Orthologuevoid
endOrthoPair()
end of data for this OrthoPairHomologeneDB
getDB()
retrieve the DB that has just been builtvoid
startDB()
indicates start of data for a HomologeneDBvoid
startGroup()
indicates start of data for a OrthoPairSetvoid
startOrthologue()
indicates start of data for an orthologuevoid
startOrthoPair()
indicates start of data for an OrthoPair
-
-
-
Constructor Detail
-
SimpleHomologeneBuilder
public SimpleHomologeneBuilder()
-
-
Method Detail
-
startDB
public void startDB()
Description copied from interface:HomologeneBuilder
indicates start of data for a HomologeneDB- Specified by:
startDB
in interfaceHomologeneBuilder
-
startGroup
public void startGroup()
Description copied from interface:HomologeneBuilder
indicates start of data for a OrthoPairSet- Specified by:
startGroup
in interfaceHomologeneBuilder
-
startOrthoPair
public void startOrthoPair()
Description copied from interface:HomologeneBuilder
indicates start of data for an OrthoPair- Specified by:
startOrthoPair
in interfaceHomologeneBuilder
-
startOrthologue
public void startOrthologue()
Description copied from interface:HomologeneBuilder
indicates start of data for an orthologue- Specified by:
startOrthologue
in interfaceHomologeneBuilder
-
addOrthologueProperty
public void addOrthologueProperty(String key, String value)
Description copied from interface:HomologeneBuilder
add a property to the current Orthologue- Specified by:
addOrthologueProperty
in interfaceHomologeneBuilder
-
endOrthologue
public void endOrthologue()
Description copied from interface:HomologeneBuilder
end of data for this Orthologue- Specified by:
endOrthologue
in interfaceHomologeneBuilder
-
addOrthoPairProperty
public void addOrthoPairProperty(String key, String value)
Description copied from interface:HomologeneBuilder
add a property to the current OrthoPair- Specified by:
addOrthoPairProperty
in interfaceHomologeneBuilder
-
endOrthoPair
public void endOrthoPair()
Description copied from interface:HomologeneBuilder
end of data for this OrthoPair- Specified by:
endOrthoPair
in interfaceHomologeneBuilder
-
addTitle
public void addTitle(int taxonID, String homologeneID, String title)
Description copied from interface:HomologeneBuilder
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. Go figger.)- Specified by:
addTitle
in interfaceHomologeneBuilder
-
endGroup
public void endGroup()
Description copied from interface:HomologeneBuilder
end of data for group- Specified by:
endGroup
in interfaceHomologeneBuilder
-
endDB
public void endDB()
Description copied from interface:HomologeneBuilder
end of data for DB- Specified by:
endDB
in interfaceHomologeneBuilder
-
getDB
public HomologeneDB getDB()
Description copied from interface:HomologeneBuilder
retrieve the DB that has just been built- Specified by:
getDB
in interfaceHomologeneBuilder
-
-