001/* ----------------------------------------------------------------------------
002 * This file was automatically generated by SWIG (http://www.swig.org).
003 * Version 3.0.8
004 *
005 * Do not make changes to this file unless you know what you are doing--modify
006 * the SWIG interface file instead.
007 * ----------------------------------------------------------------------------- */
008
009package org.sbml.libsbml;
010
011public class MathML {
012   private long swigCPtr;
013   protected boolean swigCMemOwn;
014
015   protected MathML(long cPtr, boolean cMemoryOwn)
016   {
017     swigCMemOwn = cMemoryOwn;
018     swigCPtr    = cPtr;
019   }
020
021   protected static long getCPtr(MathML obj)
022   {
023     return (obj == null) ? 0 : obj.swigCPtr;
024   }
025
026   protected static long getCPtrAndDisown (MathML obj)
027   {
028     long ptr = 0;
029
030     if (obj != null)
031     {
032       ptr             = obj.swigCPtr;
033       obj.swigCMemOwn = false;
034     }
035
036     return ptr;
037   }
038
039  protected void finalize() {
040    delete();
041  }
042
043  public synchronized void delete() {
044    if (swigCPtr != 0) {
045      if (swigCMemOwn) {
046        swigCMemOwn = false;
047        libsbmlJNI.delete_MathML(swigCPtr);
048      }
049      swigCPtr = 0;
050    }
051  }
052
053  
054/** * @internal */ public
055 MathML(SBMLNamespaces sbmlns) {
056    this(libsbmlJNI.new_MathML__SWIG_0(SBMLNamespaces.getCPtr(sbmlns), sbmlns), true);
057  }
058
059  
060/** * @internal */ public
061 MathML() {
062    this(libsbmlJNI.new_MathML__SWIG_1(), true);
063  }
064
065  
066/** * @internal */ public
067 void setPrefix(String prefix) {
068    libsbmlJNI.MathML_setPrefix(swigCPtr, this, prefix);
069  }
070
071}