public class MDLV3000Converter extends Object implements javax.faces.convert.Converter
FacesConverter converts MDL Molfile V3000 strings to CDK's
IAtomContainer objects and vice versa.| Constructor and Description |
|---|
MDLV3000Converter() |
| Modifier and Type | Method and Description |
|---|---|
org.openscience.cdk.interfaces.IAtomContainer |
getAsObject(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
String value)
Converts a MDL Molfile V3000 string to an
IAtomContainer. |
String |
getAsString(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object value)
Converts an
IAtomContainer to a MDL Molfile V3000 string. |
public org.openscience.cdk.interfaces.IAtomContainer getAsObject(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
String value)
throws javax.faces.convert.ConverterException
IAtomContainer.getAsObject in interface javax.faces.convert.ConverterIAtomContainer object or null if value
is null or empty.javax.faces.convert.ConverterException - if reading of the Molfile failspublic String getAsString(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value) throws javax.faces.convert.ConverterException
IAtomContainer to a MDL Molfile V3000 string.getAsString in interface javax.faces.convert.Convertervalue is
null or not an IAtomContainerjavax.faces.convert.ConverterException - if writing of the Molfile failsCopyright © 2021 Leibniz Institute of Plant Biochemistry (IPB), Halle (Saale), Germany. All rights reserved.