| 1 |
/** |
| 2 |
* JNA-InChI - Library for calling InChI from Java |
| 3 |
* Copyright © 2018 Daniel Lowe |
| 4 |
* |
| 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 |
* |
| 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 |
* |
| 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.jnainchi; |
| 19 |
|
| 20 |
public class InchiOutput { |
| 21 |
|
| 22 |
private final String inchi; |
| 23 |
private final String auxInfo; |
| 24 |
private final String message; |
| 25 |
private final String log; |
| 26 |
private final InchiStatus status; |
| 27 |
|
| 28 |
InchiOutput(String inchi, String auxInfo, String message, String log, InchiStatus status) { |
| 29 |
this.inchi = inchi; |
| 30 |
this.auxInfo = auxInfo; |
| 31 |
this.message = message; |
| 32 |
this.log = log; |
| 33 |
this.status = status; |
| 34 |
} |
| 35 |
|
| 36 |
public String getInchi() { |
| 37 |
return inchi; |
| 38 |
} |
| 39 |
|
| 40 |
public String getAuxInfo() { |
| 41 |
return auxInfo; |
| 42 |
} |
| 43 |
|
| 44 |
public String getMessage() { |
| 45 |
return message; |
| 46 |
} |
| 47 |
|
| 48 |
public String getLog() { |
| 49 |
return log; |
| 50 |
} |
| 51 |
|
| 52 |
public InchiStatus getStatus() { |
| 53 |
return status; |
| 54 |
} |
| 55 |
|
| 56 |
@Override |
| 57 |
public String toString() { |
| 58 |
return inchi; |
| 59 |
} |
| 60 |
} |