mirror of
https://github.com/openbabel/openbabel.git
synced 2026-08-01 00:58:00 -05:00
81 lines
2.2 KiB
Java
81 lines
2.2 KiB
Java
/* ----------------------------------------------------------------------------
|
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
* Version 1.3.31
|
|
*
|
|
* Do not make changes to this file unless you know what you are doing--modify
|
|
* the SWIG interface file instead.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
|
|
public class OBGenericData {
|
|
private long swigCPtr;
|
|
protected boolean swigCMemOwn;
|
|
|
|
protected OBGenericData(long cPtr, boolean cMemoryOwn) {
|
|
swigCMemOwn = cMemoryOwn;
|
|
swigCPtr = cPtr;
|
|
}
|
|
|
|
protected static long getCPtr(OBGenericData obj) {
|
|
return (obj == null) ? 0 : obj.swigCPtr;
|
|
}
|
|
|
|
protected void finalize() {
|
|
delete();
|
|
}
|
|
|
|
public synchronized void delete() {
|
|
if(swigCPtr != 0 && swigCMemOwn) {
|
|
swigCMemOwn = false;
|
|
openbabelJNI.delete_OBGenericData(swigCPtr);
|
|
}
|
|
swigCPtr = 0;
|
|
}
|
|
|
|
public OBGenericData(String attr, long type, DataSource source) {
|
|
this(openbabelJNI.new_OBGenericData__SWIG_0(attr, type, source.swigValue()), true);
|
|
}
|
|
|
|
public OBGenericData(String attr, long type) {
|
|
this(openbabelJNI.new_OBGenericData__SWIG_1(attr, type), true);
|
|
}
|
|
|
|
public OBGenericData(String attr) {
|
|
this(openbabelJNI.new_OBGenericData__SWIG_2(attr), true);
|
|
}
|
|
|
|
public OBGenericData() {
|
|
this(openbabelJNI.new_OBGenericData__SWIG_3(), true);
|
|
}
|
|
|
|
public OBGenericData Clone(OBBase arg0) {
|
|
long cPtr = openbabelJNI.OBGenericData_Clone(swigCPtr, this, OBBase.getCPtr(arg0), arg0);
|
|
return (cPtr == 0) ? null : new OBGenericData(cPtr, false);
|
|
}
|
|
|
|
public void SetAttribute(String v) {
|
|
openbabelJNI.OBGenericData_SetAttribute(swigCPtr, this, v);
|
|
}
|
|
|
|
public void SetSource(DataSource s) {
|
|
openbabelJNI.OBGenericData_SetSource(swigCPtr, this, s.swigValue());
|
|
}
|
|
|
|
public String GetAttribute() {
|
|
return openbabelJNI.OBGenericData_GetAttribute(swigCPtr, this);
|
|
}
|
|
|
|
public long GetDataType() {
|
|
return openbabelJNI.OBGenericData_GetDataType(swigCPtr, this);
|
|
}
|
|
|
|
public String GetValue() {
|
|
return openbabelJNI.OBGenericData_GetValue(swigCPtr, this);
|
|
}
|
|
|
|
public DataSource GetSource() {
|
|
return DataSource.swigToEnum(openbabelJNI.OBGenericData_GetSource(swigCPtr, this));
|
|
}
|
|
|
|
}
|