Class ChemCompGroupFactory
- java.lang.Object
- 
- org.biojava.nbio.structure.io.mmcif.ChemCompGroupFactory
 
- 
 public class ChemCompGroupFactory extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description ChemCompGroupFactory()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidclearCache()Force the in-memory cache to be reset.static ChemCompgetChemComp(String recordName)static ChemCompProvidergetChemCompProvider()static GroupgetGroupFromChemCompDictionary(String recordName)static StringgetOneLetterCode(ChemComp cc)static voidsetChemCompProvider(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 Detail- 
ChemCompGroupFactorypublic ChemCompGroupFactory() 
 
- 
 - 
Method Detail- 
getChemComppublic static ChemComp getChemComp(String recordName) 
 - 
setChemCompProviderpublic 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. 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-
 
 - 
getChemCompProviderpublic static ChemCompProvider getChemCompProvider() 
 - 
clearCachepublic 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.
 - 
getGroupFromChemCompDictionarypublic static Group getGroupFromChemCompDictionary(String recordName) 
 - 
getOneLetterCodepublic static String getOneLetterCode(ChemComp cc) 
 
- 
 
-