Package org.biojava.nbio.structure.ecod
Class EcodFactory
- java.lang.Object
-
- org.biojava.nbio.structure.ecod.EcodFactory
-
public class EcodFactory extends Object
Controls globalEcodDatabases
being used. Implements a multiton pattern throughgetEcodDatabase(String)
, and a singleton pattern throughgetEcodDatabase()
.- Author:
- Spencer Bliven
- See Also:
ScopFactory
,CathFactory
,EcodInstallation
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_VERSION
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EcodDatabase
getEcodDatabase()
Returns the (singleton) database for the current default versionstatic EcodDatabase
getEcodDatabase(String version)
static void
setEcodDatabase(String version)
Updates the default version
-
-
-
Field Detail
-
DEFAULT_VERSION
public static final String DEFAULT_VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEcodDatabase
public static EcodDatabase getEcodDatabase()
Returns the (singleton) database for the current default version
-
getEcodDatabase
public static EcodDatabase getEcodDatabase(String version)
-
setEcodDatabase
public static void setEcodDatabase(String version)
Updates the default version- Parameters:
version
-
-
-