Debian Codegraph @

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

raw
1 /**
2 * JNA-RInChI - Library for calling RInChI from Java
3 * Copyright © 2022 Nikolay Kochev
4 * <p>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 * <p>
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
14 * <p>
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18 package io.github.dan2097.jnarinchi;
19
20
21 /**
22 * Immutable data class for the output from RInChI (and RAuxInfo) conversion
23 * to a reaction represented as file text (RXN or RDFile formats).
24 * @author Nikolay Kochev
25 */
26 public class FileTextOutput extends Output {
27
28 private final String reactionFileText;
29 private final ReactionFileFormat fileFormat;
30
31 public FileTextOutput(String reactionFileText, ReactionFileFormat fileFormat,
32 Status status, int errorCode, String errorMessage) {
33 super(status, errorCode, errorMessage);
34 this.reactionFileText = reactionFileText;
35 this.fileFormat = fileFormat;
36 }
37
38 public String getReactionFileText() {
39 return reactionFileText;
40 }
41
42 public ReactionFileFormat getFileFormat() {
43 return fileFormat;
44 }
45 }