public class ConversionRequest extends Object
Modifier and Type | Field and Description |
---|---|
boolean |
binary
Use binary format by invoking
MolExporter#exportToBinFormat(chemaxon.struc.Molecule, java.lang.String) and base64 encoding the result. |
boolean |
clean2d
Invoke Clean2D (
Cleaner#clean(chemaxon.struc.MoleculeGraph, int) ) on the imported
structure. |
String |
f
Format string to pass to
MolExporter#exportToFormat(chemaxon.struc.Molecule, java.lang.String) . |
String |
importopts
Import options or null/empty string.
|
String |
mol
Molecule to convert.
|
String |
molname
Molecule name to set.
|
Map<String,String> |
molprops
Molecule properties to set.
|
Map<Integer,String> |
pseudos
Pseudo atoms to set.
|
Constructor and Description |
---|
ConversionRequest() |
public String mol
MolImporter#importMol(java.lang.String)
when no
import option specified; otherwise using MolImporter#importMol(java.lang.String, java.lang.String)
public String importopts
public String f
MolExporter#exportToFormat(chemaxon.struc.Molecule, java.lang.String)
.public boolean binary
MolExporter#exportToBinFormat(chemaxon.struc.Molecule, java.lang.String)
and base64 encoding the result.public boolean clean2d
Cleaner#clean(chemaxon.struc.MoleculeGraph, int)
) on the imported
structure.public String molname
null
. Previous molecule name is overriden. When value is not
null
it is passed to method Molecule.setName(java.lang.String)
of the imported structure. Note
that the passed method treats null
and empty String
(""
) values the same way.public Map<String,String> molprops
null
ones) are
passed to Molecule.setProperty(java.lang.String, java.lang.String)
.public Map<Integer,String> pseudos
MolAtom.setAtno(int)
) to
MolAtom.PSEUDO
and their alias will be set using MolAtom.setAliasstr(java.lang.String)
. The
alias values will be escaped by a "\{" prefix and "}" suffix to prevent formatting.