Package org.openscience.cdk.libio.cml
Class MDMoleculeCustomizer
- java.lang.Object
-
- org.openscience.cdk.libio.cml.MDMoleculeCustomizer
-
- All Implemented Interfaces:
ICMLCustomizer
public class MDMoleculeCustomizer extends Object implements ICMLCustomizer
Customize persistence of MDMolecule by adding support for residues and charge groups.- Author:
- ola
- Source code:
- main
- Belongs to CDK module:
- libiomd
- Belongs to the set:
- libio-cml-customizers
-
-
Constructor Summary
Constructors Constructor Description MDMoleculeCustomizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
customize(IAtomContainer molecule, Object nodeToAdd)
Customize Molecule.void
customize(IAtom atom, Object nodeToAdd)
Customize Atom.void
customize(IBond bond, Object nodeToAdd)
No customization for bonds.
-
-
-
Method Detail
-
customize
public void customize(IBond bond, Object nodeToAdd) throws Exception
No customization for bonds.- Specified by:
customize
in interfaceICMLCustomizer
- Parameters:
bond
- Bond to base the customization onnodeToAdd
- XOM Element to customize- Throws:
Exception
- thrown if nodeToAdd is not an instance of nu.xom.Element
-
customize
public void customize(IAtom atom, Object nodeToAdd) throws Exception
Customize Atom.- Specified by:
customize
in interfaceICMLCustomizer
- Parameters:
atom
- Atom to base the customization onnodeToAdd
- XOM Element to customize- Throws:
Exception
- thrown if nodeToAdd is not an instance of nu.xom.Element
-
customize
public void customize(IAtomContainer molecule, Object nodeToAdd) throws Exception
Customize Molecule.- Specified by:
customize
in interfaceICMLCustomizer
- Parameters:
molecule
- Molecule to base the customization onnodeToAdd
- XOM Element to customize- Throws:
Exception
- thrown if nodeToAdd is not an instance of nu.xom.Element
-
-