Debian Codegraph @

jna-rinchi-core/src/main/java/io/github/dan2097/jnarinchi/CtabVersion.java

raw
1 package io.github.dan2097.jnarinchi;
2
3 /**
4 * Constants for the two versions of CTAB files, {@link #V2000} and {@link #V3000}.
5 * <p>
6 * Please note that the native RInChI library v1.00 <b>only supports</b> reading and writing
7 * of <b>RXN and RDFile V2000</b>. Consequently, this Java wrapper also only supports
8 * conversion from and to RXN and RDFile V2000.
9 * </p>
10 */
11 public enum CtabVersion {
12 /**
13 * Constant representing the CTAB V2000 format and its version string.
14 */
15 V2000("V2000"),
16 /**
17 * Constant representing the CTAB V3000 format and its version string.
18 * <br>
19 * <b>Note:</b> RXN and RDFile V3000 are currently <b>not</b> supported.
20 */
21 V3000("V3000");
22
23 private final String versionString;
24
25 CtabVersion(String versionString) {
26 this.versionString = versionString;
27 }
28
29 /**
30 * Returns the version string of this CTabVersion.
31 *
32 * @return version string
33 */
34 public String getVersionString() {
35 return this.versionString;
36 }
37
38 @Override
39 public String toString() {
40 return getVersionString();
41 }
42 }