Class CathFactory

java.lang.Object
org.biojava.nbio.structure.cath.CathFactory

public class CathFactory extends Object
Controls global CathDatabases being used. Implements a multiton pattern through getCathDatabase(String), and a singleton pattern through getCathDatabase().
Author:
dmyersturnbull
See Also:
  • Field Details

  • Method Details

    • 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"