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
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic EcodDatabaseReturns the (singleton) database for the current default versionstatic EcodDatabasegetEcodDatabase(String version) static voidsetEcodDatabase(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-
-