60
60
* </ul>
61
61
*
62
62
* @author Sam Adams
63
- *
64
63
* @cdk.module inchi
65
64
* @cdk.githash
66
65
*/
@@ -71,7 +70,7 @@ public class InChIGeneratorFactory {
71
70
/**
72
71
* If the CDK aromaticity flag should be ignored and the bonds treated solely as single and double bonds.
73
72
*/
74
- private boolean ignoreAromaticBonds = true ;
73
+ private boolean ignoreAromaticBonds = true ;
75
74
76
75
/**
77
76
* <p>Constructor for InChIGeneratorFactory. Ensures that native code
@@ -94,7 +93,7 @@ private InChIGeneratorFactory() throws CDKException {
94
93
*
95
94
* @return the one <code>InChIGeneratorFactory</code> instance
96
95
* @throws CDKException if unable to load native code when attempting
97
- * to create the factory
96
+ * to create the factory
98
97
*/
99
98
public static InChIGeneratorFactory getInstance () throws CDKException {
100
99
synchronized (InChIGeneratorFactory .class ) {
@@ -110,14 +109,14 @@ public static InChIGeneratorFactory getInstance() throws CDKException {
110
109
* INCHI_BOND_TYPE.ALTERN is considered special in contrast to single, double, and triple bonds,
111
110
* and is not bulletproof. If the molecule has clearly defined single and double bonds,
112
111
* the option can be used to force the class not to use the alternating bond type.
113
- *
112
+ * <p>
114
113
* http://www.inchi-trust.org/fileadmin/user_upload/html/inchifaq/inchi-faq.html#16.3
115
114
*
116
115
* @param ignore if aromatic bonds should be treated as bonds of type single and double
117
116
* @deprecated "the use of aromatic bonds is strongly discouraged" - InChI
118
- * FAQ, the InChI will fail for many compounds if ignore
119
- * aromatic bonds is not enabled and the compound have aromatic
120
- * flags.
117
+ * FAQ, the InChI will fail for many compounds if ignore
118
+ * aromatic bonds is not enabled and the compound have aromatic
119
+ * flags.
121
120
*/
122
121
@ Deprecated
123
122
public void setIgnoreAromaticBonds (boolean ignore ) {
@@ -139,7 +138,7 @@ public boolean getIgnoreAromaticBonds() {
139
138
* generated by this method, please use {@link #getInChIGenerator(IAtomContainer, List)}
140
139
* with no options specified if you would like to generate AuxInfo.
141
140
*
142
- * @param container AtomContainer to generate InChI for.
141
+ * @param container AtomContainer to generate InChI for.
143
142
* @return the InChI generator object
144
143
* @throws CDKException if the generator cannot be instantiated
145
144
*/
@@ -150,8 +149,8 @@ public InChIGenerator getInChIGenerator(IAtomContainer container) throws CDKExce
150
149
/**
151
150
* Gets InChI generator for CDK IAtomContainer.
152
151
*
153
- * @param container AtomContainer to generate InChI for.
154
- * @param options String of options for InChI generation.
152
+ * @param container AtomContainer to generate InChI for.
153
+ * @param options String of options for InChI generation.
155
154
* @return the InChI generator object
156
155
* @throws CDKException if the generator cannot be instantiated
157
156
*/
@@ -162,10 +161,10 @@ public InChIGenerator getInChIGenerator(IAtomContainer container, String options
162
161
/**
163
162
* Gets InChI generator for CDK IAtomContainer.
164
163
*
165
- * @param container AtomContainer to generate InChI for.
166
- * @param options List of options (net.sf.jniinchi.INCHI_OPTION) for InChI generation.
164
+ * @param container AtomContainer to generate InChI for.
165
+ * @param options List of options (net.sf.jniinchi.INCHI_OPTION) for InChI generation.
167
166
* @return the InChI generator object
168
- * @throws CDKException if the generator cannot be instantiated
167
+ * @throws CDKException if the generator cannot be instantiated
169
168
*/
170
169
public InChIGenerator getInChIGenerator (IAtomContainer container , List <INCHI_OPTION > options ) throws CDKException {
171
170
if (options == null ) throw new IllegalArgumentException ("Null options" );
@@ -175,10 +174,10 @@ public InChIGenerator getInChIGenerator(IAtomContainer container, List<INCHI_OPT
175
174
/**
176
175
* Gets structure generator for an InChI string.
177
176
*
178
- * @param inchi InChI to generate structure from.
177
+ * @param inchi InChI to generate structure from.
179
178
* @param builder the builder to use
180
- * @return the InChI structure generator object
181
- * @throws CDKException if the generator cannot be instantiated
179
+ * @return the InChI structure generator object
180
+ * @throws CDKException if the generator cannot be instantiated
182
181
*/
183
182
public InChIToStructure getInChIToStructure (String inchi , IChemObjectBuilder builder ) throws CDKException {
184
183
return (new InChIToStructure (inchi , builder ));
@@ -187,11 +186,11 @@ public InChIToStructure getInChIToStructure(String inchi, IChemObjectBuilder bui
187
186
/**
188
187
* <p>Gets structure generator for an InChI string.
189
188
*
190
- * @param inchi InChI to generate structure from.
189
+ * @param inchi InChI to generate structure from.
191
190
* @param builder the builder to employ
192
- * @param options String of options for structure generation.
193
- * @return the InChI structure generator object
194
- * @throws CDKException if the generator cannot be instantiated
191
+ * @param options String of options for structure generation.
192
+ * @return the InChI structure generator object
193
+ * @throws CDKException if the generator cannot be instantiated
195
194
*/
196
195
public InChIToStructure getInChIToStructure (String inchi , IChemObjectBuilder builder , String options )
197
196
throws CDKException {
@@ -201,11 +200,11 @@ public InChIToStructure getInChIToStructure(String inchi, IChemObjectBuilder bui
201
200
/**
202
201
* <p>Gets structure generator for an InChI string.
203
202
*
204
- * @param inchi InChI to generate structure from.
205
- * @param options List of options (net.sf.jniinchi.INCHI_OPTION) for structure generation.
203
+ * @param inchi InChI to generate structure from.
204
+ * @param options List of options (net.sf.jniinchi.INCHI_OPTION) for structure generation.
206
205
* @param builder the builder to employ
207
- * @return the InChI structure generator object
208
- * @throws CDKException if the generator cannot be instantiated
206
+ * @return the InChI structure generator object
207
+ * @throws CDKException if the generator cannot be instantiated
209
208
*/
210
209
public InChIToStructure getInChIToStructure (String inchi , IChemObjectBuilder builder , List <String > options )
211
210
throws CDKException {
0 commit comments