public class ChemCompGroupFactory extends Object
Constructor and Description |
---|
ChemCompGroupFactory() |
Modifier and Type | Method and Description |
---|---|
static void |
clearCache()
Force the in-memory cache to be reset.
|
static ChemComp |
getChemComp(String recordName) |
static ChemCompProvider |
getChemCompProvider() |
static Group |
getGroupFromChemCompDictionary(String recordName) |
static String |
getOneLetterCode(ChemComp cc) |
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.
|
public ChemCompGroupFactory()
public static ChemComp getChemComp(String recordName)
public static void setChemCompProvider(ChemCompProvider provider)
Changing the provider also resets the cache, so any groups previously accessed will be reread or re-downloaded.
provider
- public static ChemCompProvider getChemCompProvider()
public static void clearCache()
public static Group getGroupFromChemCompDictionary(String recordName)
public static String getOneLetterCode(ChemComp cc)
Copyright © 2000–2019 BioJava. All rights reserved.