001/* ----------------------------------------------------------------------------
002 * This file was automatically generated by SWIG (http://www.swig.org).
003 * Version 2.0.12
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
011/** 
012 * <span class="pkg-marker pkg-color-layout"><a href="group__layout.html">layout</a></span>
013
014 Implementation of the 'layout' package extention to the
015 * SpeciesReference construct.
016 */
017
018public class LayoutSpeciesReferencePlugin extends SBasePlugin {
019   private long swigCPtr;
020
021   protected LayoutSpeciesReferencePlugin(long cPtr, boolean cMemoryOwn)
022   {
023     super(libsbmlJNI.LayoutSpeciesReferencePlugin_SWIGUpcast(cPtr), cMemoryOwn);
024     swigCPtr = cPtr;
025   }
026
027   protected static long getCPtr(LayoutSpeciesReferencePlugin obj)
028   {
029     return (obj == null) ? 0 : obj.swigCPtr;
030   }
031
032   protected static long getCPtrAndDisown (LayoutSpeciesReferencePlugin obj)
033   {
034     long ptr = 0;
035
036     if (obj != null)
037     {
038       ptr             = obj.swigCPtr;
039       obj.swigCMemOwn = false;
040     }
041
042     return ptr;
043   }
044
045  protected void finalize() {
046    delete();
047  }
048
049  public synchronized void delete() {
050    if (swigCPtr != 0) {
051      if (swigCMemOwn) {
052        swigCMemOwn = false;
053        libsbmlJNI.delete_LayoutSpeciesReferencePlugin(swigCPtr);
054      }
055      swigCPtr = 0;
056    }
057    super.delete();
058  }
059
060  
061/**
062   * Constructor
063   */ public
064 LayoutSpeciesReferencePlugin(String uri, String prefix, LayoutPkgNamespaces layoutns) {
065    this(libsbmlJNI.new_LayoutSpeciesReferencePlugin__SWIG_0(uri, prefix, LayoutPkgNamespaces.getCPtr(layoutns), layoutns), true);
066  }
067
068  
069/**
070   * Copy constructor. Creates a copy of this {@link SBase} object.
071   */ public
072 LayoutSpeciesReferencePlugin(LayoutSpeciesReferencePlugin orig) {
073    this(libsbmlJNI.new_LayoutSpeciesReferencePlugin__SWIG_1(LayoutSpeciesReferencePlugin.getCPtr(orig), orig), true);
074  }
075
076  
077/**
078   * Creates and returns a deep copy of this {@link LayoutSpeciesReferencePlugin} object.
079   <p>
080   * @return a (deep) copy of this {@link LayoutSpeciesReferencePlugin} object
081   */ public
082 SBasePlugin cloneObject() {
083    long cPtr = libsbmlJNI.LayoutSpeciesReferencePlugin_cloneObject(swigCPtr, this);
084    return (cPtr == 0) ? null : new LayoutSpeciesReferencePlugin(cPtr, true);
085  }
086
087}