Package org.biojava.nbio.structure.ecod
Class EcodFactory
java.lang.Object
org.biojava.nbio.structure.ecod.EcodFactory
Controls global
EcodDatabases
being used.
Implements a multiton pattern through getEcodDatabase(String)
,
and a singleton pattern through getEcodDatabase()
.- Author:
- Spencer Bliven
- See Also:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EcodDatabase
Returns the (singleton) database for the current default versionstatic EcodDatabase
getEcodDatabase
(String version) static void
setEcodDatabase
(String version) Updates the default version
-
Field Details
-
DEFAULT_VERSION
- See Also:
-
-
Method Details
-
getEcodDatabase
Returns the (singleton) database for the current default version -
getEcodDatabase
-
setEcodDatabase
Updates the default version- Parameters:
version
-
-