Class ChemCompGroupFactory
java.lang.Object
org.biojava.nbio.structure.io.mmcif.ChemCompGroupFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Force the in-memory cache to be reset.static ChemComp
getChemComp
(String recordName) static ChemCompProvider
static Group
getGroupFromChemCompDictionary
(String recordName) static String
static void
setChemCompProvider
(ChemCompProvider provider) The new ChemCompProvider will be set in the static variable, so this provider will be used from now on until it is changed again.
-
Constructor Details
-
ChemCompGroupFactory
public ChemCompGroupFactory()
-
-
Method Details
-
getChemComp
-
setChemCompProvider
The new ChemCompProvider will be set in the static variable, so this provider will be used from now on until it is changed again. Note that this change can have unexpected behavior of code executed afterwards.Changing the provider also resets the cache, so any groups previously accessed will be reread or re-downloaded.
- Parameters:
provider
-
-
getChemCompProvider
-
clearCache
public static void clearCache()Force the in-memory cache to be reset. Note that the ChemCompProvider may have additional memory or disk caches that need to be cleared too. -
getGroupFromChemCompDictionary
-
getOneLetterCode
-