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 void
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.ChemicalComponentDictionary
getContainer()
Retrieve the created container representing a CIF file.void
prepare()
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:ChemCompConsumer
Consume a particular Cif category.- Specified by:
consumeChemComp
in interfaceChemCompConsumer
- Parameters:
c
- data
-
consumeChemCompAtom
public void consumeChemCompAtom(org.rcsb.cif.schema.mm.ChemCompAtom atom)
Description copied from interface:ChemCompConsumer
Consume a particular Cif category.- Specified by:
consumeChemCompAtom
in interfaceChemCompConsumer
- Parameters:
atom
- data
-
consumeChemCompBond
public void consumeChemCompBond(org.rcsb.cif.schema.mm.ChemCompBond bond)
Description copied from interface:ChemCompConsumer
Consume a particular Cif category.- Specified by:
consumeChemCompBond
in interfaceChemCompConsumer
- Parameters:
bond
- data
-
prepare
public void prepare()
Description copied from interface:CifFileConsumer
Setup routine which initializes a new container.- Specified by:
prepare
in interfaceCifFileConsumer<ChemicalComponentDictionary>
-
finish
public void 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
public 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
-
-