/* ---------------------------------------------------------------------------- * 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, DataOrigin 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 SetOrigin(DataOrigin s) { openbabelJNI.OBGenericData_SetOrigin(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 DataOrigin GetOrigin() { return DataOrigin.swigToEnum(openbabelJNI.OBGenericData_GetOrigin(swigCPtr, this)); } }