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
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic CathDatabaseReturns the default (singleton) CathDatabase.static CathDatabasegetCathDatabase(String version) Returns a CATH database of the specified version.static voidsetCath(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"
-