Class BioUnitDataProviderFactory

java.lang.Object
org.biojava.nbio.structure.quaternary.io.BioUnitDataProviderFactory

public class BioUnitDataProviderFactory extends Object
Factory to create BioUnitDataProvider instances. Unlike many other BioJava Factory classes, this class does not store singletons, but creates a new instance for every call of getBioUnitDataProvider().
  • Field Details

    • mmcifProviderClassName

      public static final String mmcifProviderClassName
    • remoteProviderClassName

      public static final String remoteProviderClassName
    • pdbProviderClassName

      public static final String pdbProviderClassName
    • DEFAULT_PROVIDER_CLASS

      public static Class<? extends BioUnitDataProvider> DEFAULT_PROVIDER_CLASS
    • DEFAULT_PROVIDER_CLASSNAME

      public static final String DEFAULT_PROVIDER_CLASSNAME
  • Method Details

    • getBioUnitDataProvider

      public static BioUnitDataProvider getBioUnitDataProvider()
      Returns:
      A new instance of the current BioUnitDataProvider class
    • setBioUnitDataProvider

      public static void setBioUnitDataProvider(Class<? extends BioUnitDataProvider> klass)
      Set the type of provider to be created
      Parameters:
      klass - A BioUnitDataProvider
    • setBioUnitDataProvider

      public static void setBioUnitDataProvider(String className) throws ClassNotFoundException, ClassCastException
      Sets the data provider to the specified class name. Use setBioUnitDataProvider(Class) for better type safety.
      Parameters:
      className - A class implementing BioUnitDataProvider
      Throws:
      ClassNotFoundException - If the class cannot be loaded
      ClassCastException - If the class does not extend BioUnitDataProvider
    • getBioUnitDataProviderClass

      public static Class<? extends BioUnitDataProvider> getBioUnitDataProviderClass()
      Get the class of providers to be instantiated.
      Returns: