Class ChemCompConsumerImpl
java.lang.Object
org.biojava.nbio.structure.io.cif.ChemCompConsumerImpl
- All Implemented Interfaces:
ChemCompConsumer
,CifFileConsumer<ChemicalComponentDictionary>
Consumes a CCD file to create the
ChemicalComponentDictionary
.- Author:
- Sebastian Bittrich
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
consumeChemComp
(org.rcsb.cif.schema.mm.ChemComp c) Consume a particular Cif category.void
consumeChemCompAtom
(org.rcsb.cif.schema.mm.ChemCompAtom atom) Consume a particular Cif category.void
consumeChemCompBond
(org.rcsb.cif.schema.mm.ChemCompBond bond) Consume a particular Cif category.void
finish()
Ultimate setup which can include steps which require several categories to be available and integrate them into the final container.Retrieve the created container representing a CIF file.void
prepare()
Setup routine which initializes a new container.
-
Constructor Details
-
ChemCompConsumerImpl
public ChemCompConsumerImpl()
-
-
Method Details
-
consumeChemComp
Description copied from interface:ChemCompConsumer
Consume a particular Cif category.- Specified by:
consumeChemComp
in interfaceChemCompConsumer
- Parameters:
c
- data
-
consumeChemCompAtom
Description copied from interface:ChemCompConsumer
Consume a particular Cif category.- Specified by:
consumeChemCompAtom
in interfaceChemCompConsumer
- Parameters:
atom
- data
-
consumeChemCompBond
Description copied from interface:ChemCompConsumer
Consume a particular Cif category.- Specified by:
consumeChemCompBond
in interfaceChemCompConsumer
- Parameters:
bond
- data
-
prepare
Description copied from interface:CifFileConsumer
Setup routine which initializes a new container.- Specified by:
prepare
in interfaceCifFileConsumer<ChemicalComponentDictionary>
-
finish
Description copied from interface:CifFileConsumer
Ultimate setup which can include steps which require several categories to be available and integrate them into the final container.- Specified by:
finish
in interfaceCifFileConsumer<ChemicalComponentDictionary>
-
getContainer
Description copied from interface:CifFileConsumer
Retrieve the created container representing a CIF file.- Specified by:
getContainer
in interfaceCifFileConsumer<ChemicalComponentDictionary>
- Returns:
- all desired information wrapped as object of type
S
-