Package org.biojava.nbio.structure.cath
Class CathFactory
java.lang.Object
org.biojava.nbio.structure.cath.CathFactory
Controls global
CathDatabases
being used.
Implements a multiton pattern through getCathDatabase(String)
,
and a singleton pattern through getCathDatabase()
.- Author:
- dmyersturnbull
- See Also:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CathDatabase
Returns the default (singleton) CathDatabase.static CathDatabase
getCathDatabase
(String version) Returns a CATH database of the specified version.static void
setCath
(CathDatabase cath) Sets the default (singleton) CathDatabase.
-
Field Details
-
VERSION_3_5_0
- See Also:
-
VERSION_4_0_0
- See Also:
-
VERSION_4_1_0
- See Also:
-
LATEST_VERSION
- See Also:
-
DEFAULT_VERSION
- See Also:
-
-
Method Details
-
setCath
Sets the default (singleton) CathDatabase. -
getCathDatabase
Returns the default (singleton) CathDatabase. If the database is null, this will recreate it (lazy initialization). -
getCathDatabase
Returns a CATH database of the specified version.- Parameters:
version
- For example, "3.5.0"
-