Class ChemicalComponentDictionary
java.lang.Object
org.biojava.nbio.structure.io.mmcif.ChemicalComponentDictionary
A representation of the Chemical Component Dictionary.
- Since:
- 1.7
- Author:
- Andreas Prlic
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addChemComp
(ChemComp comp) add a new component to the dictionarygetChemComp
(String id) Get the parent of a component.getReplaced
(String id) if ChemComp is replacing another one, get the old version otherwise return the same ChemComp again.getReplacer
(String id) if ChemComp is replaced by another one, get the newer version otherwise return the same ChemComp again.boolean
isReplaced
(String id) boolean
boolean
isReplacer
(String id) boolean
-
Constructor Details
-
ChemicalComponentDictionary
public ChemicalComponentDictionary()
-
-
Method Details
-
isReplaced
-
isReplaced
-
isReplacer
-
isReplacer
-
getReplacer
if ChemComp is replaced by another one, get the newer version otherwise return the same ChemComp again.- Parameters:
c
-- Returns:
- get the component that replaced ChemComp.
-
getReplacer
-
getReplaced
if ChemComp is replacing another one, get the old version otherwise return the same ChemComp again.- Parameters:
c
- the ChemComp for which older versions should be looked up.
-
getReplaced
-
getParent
Get the parent of a component. If component has no parent, return null- Parameters:
c
-- Returns:
- get the parent component or null if ChemComp has no parent.
-
addChemComp
add a new component to the dictionary- Parameters:
comp
-
-
getChemComp
-