Class BioUnitDataProviderFactory
java.lang.Object
org.biojava.nbio.structure.quaternary.io.BioUnitDataProviderFactory
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 Summary
Fields - 
Method Summary
Modifier and TypeMethodDescriptionstatic BioUnitDataProviderstatic Class<? extends BioUnitDataProvider>Get the class of providers to be instantiated.static voidsetBioUnitDataProvider(Class<? extends BioUnitDataProvider> klass) Set the type of provider to be createdstatic voidsetBioUnitDataProvider(String className) Sets the data provider to the specified class name. 
- 
Field Details
- 
mmcifProviderClassName
 - 
remoteProviderClassName
 - 
pdbProviderClassName
 - 
DEFAULT_PROVIDER_CLASS
 - 
DEFAULT_PROVIDER_CLASSNAME
 
 - 
 - 
Method Details
- 
getBioUnitDataProvider
- Returns:
 - A new instance of the current BioUnitDataProvider class
 
 - 
setBioUnitDataProvider
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. UsesetBioUnitDataProvider(Class)for better type safety.- Parameters:
 className- A class implementing BioUnitDataProvider- Throws:
 ClassNotFoundException- If the class cannot be loadedClassCastException- If the class does not extend BioUnitDataProvider
 - 
getBioUnitDataProviderClass
Get the class of providers to be instantiated.- Returns:
 
 
 -