/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 1.3.36
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */


public class OBCommentData extends OBGenericData {
  private long swigCPtr;

  protected OBCommentData(long cPtr, boolean cMemoryOwn) {
    super(openbabelJNI.SWIGOBCommentDataUpcast(cPtr), cMemoryOwn);
    swigCPtr = cPtr;
  }

  protected static long getCPtr(OBCommentData obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if(swigCPtr != 0 && swigCMemOwn) {
      swigCMemOwn = false;
      openbabelJNI.delete_OBCommentData(swigCPtr);
    }
    swigCPtr = 0;
    super.delete();
  }

  public OBCommentData() {
    this(openbabelJNI.new_OBCommentData__SWIG_0(), true);
  }

  public OBCommentData(OBCommentData arg0) {
    this(openbabelJNI.new_OBCommentData__SWIG_1(OBCommentData.getCPtr(arg0), arg0), true);
  }

  public void SetData(String data) {
    openbabelJNI.OBCommentData_SetData__SWIG_0(swigCPtr, this, data);
  }

  public String GetData() {
    return openbabelJNI.OBCommentData_GetData(swigCPtr, this);
  }

}
