mirror of
https://github.com/openbabel/openbabel.git
synced 2026-08-01 00:58:00 -05:00
* scripts/*: Split openbabel.i into individual copies for each
language. * scripts/java/*: Initial attempt at a java interface from SWIG. Untested.
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 1.3.29
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
public final class obMessageLevel {
|
||||
public final static obMessageLevel obError = new obMessageLevel("obError");
|
||||
public final static obMessageLevel obWarning = new obMessageLevel("obWarning");
|
||||
public final static obMessageLevel obInfo = new obMessageLevel("obInfo");
|
||||
public final static obMessageLevel obAuditMsg = new obMessageLevel("obAuditMsg");
|
||||
public final static obMessageLevel obDebug = new obMessageLevel("obDebug");
|
||||
|
||||
public final int swigValue() {
|
||||
return swigValue;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return swigName;
|
||||
}
|
||||
|
||||
public static obMessageLevel swigToEnum(int swigValue) {
|
||||
if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
|
||||
return swigValues[swigValue];
|
||||
for (int i = 0; i < swigValues.length; i++)
|
||||
if (swigValues[i].swigValue == swigValue)
|
||||
return swigValues[i];
|
||||
throw new IllegalArgumentException("No enum " + obMessageLevel.class + " with value " + swigValue);
|
||||
}
|
||||
|
||||
private obMessageLevel(String swigName) {
|
||||
this.swigName = swigName;
|
||||
this.swigValue = swigNext++;
|
||||
}
|
||||
|
||||
private obMessageLevel(String swigName, int swigValue) {
|
||||
this.swigName = swigName;
|
||||
this.swigValue = swigValue;
|
||||
swigNext = swigValue+1;
|
||||
}
|
||||
|
||||
private obMessageLevel(String swigName, obMessageLevel swigEnum) {
|
||||
this.swigName = swigName;
|
||||
this.swigValue = swigEnum.swigValue;
|
||||
swigNext = this.swigValue+1;
|
||||
}
|
||||
|
||||
private static obMessageLevel[] swigValues = { obError, obWarning, obInfo, obAuditMsg, obDebug };
|
||||
private static int swigNext = 0;
|
||||
private final int swigValue;
|
||||
private final String swigName;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user