Class ChemCompConsumerImpl
- java.lang.Object
-
- org.biojava.nbio.structure.io.cif.ChemCompConsumerImpl
-
- All Implemented Interfaces:
ChemCompConsumer,CifFileConsumer<ChemicalComponentDictionary>
public class ChemCompConsumerImpl extends Object implements ChemCompConsumer
Consumes a CCD file to create theChemicalComponentDictionary.- Author:
- Sebastian Bittrich
-
-
Constructor Summary
Constructors Constructor Description ChemCompConsumerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsumeChemComp(org.rcsb.cif.schema.mm.ChemComp c)Consume a particular Cif category.voidconsumeChemCompAtom(org.rcsb.cif.schema.mm.ChemCompAtom atom)Consume a particular Cif category.voidconsumeChemCompBond(org.rcsb.cif.schema.mm.ChemCompBond bond)Consume a particular Cif category.voidfinish()Ultimate setup which can include steps which require several categories to be available and integrate them into the final container.ChemicalComponentDictionarygetContainer()Retrieve the created container representing a CIF file.voidprepare()Setup routine which initializes a new container.
-
-
-
Constructor Detail
-
ChemCompConsumerImpl
public ChemCompConsumerImpl()
-
-
Method Detail
-
consumeChemComp
public void consumeChemComp(org.rcsb.cif.schema.mm.ChemComp c)
Description copied from interface:ChemCompConsumerConsume a particular Cif category.- Specified by:
consumeChemCompin interfaceChemCompConsumer- Parameters:
c- data
-
consumeChemCompAtom
public void consumeChemCompAtom(org.rcsb.cif.schema.mm.ChemCompAtom atom)
Description copied from interface:ChemCompConsumerConsume a particular Cif category.- Specified by:
consumeChemCompAtomin interfaceChemCompConsumer- Parameters:
atom- data
-
consumeChemCompBond
public void consumeChemCompBond(org.rcsb.cif.schema.mm.ChemCompBond bond)
Description copied from interface:ChemCompConsumerConsume a particular Cif category.- Specified by:
consumeChemCompBondin interfaceChemCompConsumer- Parameters:
bond- data
-
prepare
public void prepare()
Description copied from interface:CifFileConsumerSetup routine which initializes a new container.- Specified by:
preparein interfaceCifFileConsumer<ChemicalComponentDictionary>
-
finish
public void finish()
Description copied from interface:CifFileConsumerUltimate setup which can include steps which require several categories to be available and integrate them into the final container.- Specified by:
finishin interfaceCifFileConsumer<ChemicalComponentDictionary>
-
getContainer
public ChemicalComponentDictionary getContainer()
Description copied from interface:CifFileConsumerRetrieve the created container representing a CIF file.- Specified by:
getContainerin interfaceCifFileConsumer<ChemicalComponentDictionary>- Returns:
- all desired information wrapped as object of type
S
-
-