Package org.biojava.nbio.structure.cath
Class CathFactory
- java.lang.Object
 - 
- org.biojava.nbio.structure.cath.CathFactory
 
 
- 
public class CathFactory extends Object
Controls globalCathDatabasesbeing used. Implements a multiton pattern throughgetCathDatabase(String), and a singleton pattern throughgetCathDatabase().- Author:
 - dmyersturnbull
 - See Also:
 ScopFactory,CathInstallation
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_VERSIONstatic StringLATEST_VERSIONstatic StringVERSION_3_5_0static StringVERSION_4_0_0static StringVERSION_4_1_0static StringVERSION_4_2_0 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CathDatabasegetCathDatabase()Returns 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 Detail
- 
VERSION_3_5_0
public static final String VERSION_3_5_0
- See Also:
 - Constant Field Values
 
 
- 
VERSION_4_0_0
public static final String VERSION_4_0_0
- See Also:
 - Constant Field Values
 
 
- 
VERSION_4_1_0
public static final String VERSION_4_1_0
- See Also:
 - Constant Field Values
 
 
- 
VERSION_4_2_0
public static final String VERSION_4_2_0
- See Also:
 - Constant Field Values
 
 
- 
LATEST_VERSION
public static final String LATEST_VERSION
- See Also:
 - Constant Field Values
 
 
- 
DEFAULT_VERSION
public static final String DEFAULT_VERSION
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
setCath
public static void setCath(CathDatabase cath)
Sets the default (singleton) CathDatabase. 
- 
getCathDatabase
public static CathDatabase getCathDatabase()
Returns the default (singleton) CathDatabase. If the database is null, this will recreate it (lazy initialization). 
- 
getCathDatabase
public static CathDatabase getCathDatabase(String version)
Returns a CATH database of the specified version.- Parameters:
 version- For example, "3.5.0"
 
 - 
 
 -