001/* ---------------------------------------------------------------------------- 002 * This file was automatically generated by SWIG (http://www.swig.org). 003 * Version 2.0.11 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 LayoutSpeciesReferencePlugin extends SBasePlugin { 012 private long swigCPtr; 013 014 protected LayoutSpeciesReferencePlugin(long cPtr, boolean cMemoryOwn) 015 { 016 super(libsbmlJNI.LayoutSpeciesReferencePlugin_SWIGUpcast(cPtr), cMemoryOwn); 017 swigCPtr = cPtr; 018 } 019 020 protected static long getCPtr(LayoutSpeciesReferencePlugin obj) 021 { 022 return (obj == null) ? 0 : obj.swigCPtr; 023 } 024 025 protected static long getCPtrAndDisown (LayoutSpeciesReferencePlugin obj) 026 { 027 long ptr = 0; 028 029 if (obj != null) 030 { 031 ptr = obj.swigCPtr; 032 obj.swigCMemOwn = false; 033 } 034 035 return ptr; 036 } 037 038 protected void finalize() { 039 delete(); 040 } 041 042 public synchronized void delete() { 043 if (swigCPtr != 0) { 044 if (swigCMemOwn) { 045 swigCMemOwn = false; 046 libsbmlJNI.delete_LayoutSpeciesReferencePlugin(swigCPtr); 047 } 048 swigCPtr = 0; 049 } 050 super.delete(); 051 } 052 053 public LayoutSpeciesReferencePlugin(String uri, String prefix, LayoutPkgNamespaces layoutns) { 054 this(libsbmlJNI.new_LayoutSpeciesReferencePlugin__SWIG_0(uri, prefix, LayoutPkgNamespaces.getCPtr(layoutns), layoutns), true); 055 } 056 057 public LayoutSpeciesReferencePlugin(LayoutSpeciesReferencePlugin orig) { 058 this(libsbmlJNI.new_LayoutSpeciesReferencePlugin__SWIG_1(LayoutSpeciesReferencePlugin.getCPtr(orig), orig), true); 059 } 060 061 062/** 063 * Creates and returns a deep copy of this {@link SBasePlugin} object. 064 * <p> 065 * @return a (deep) copy of this {@link SBase} object 066 */ public 067 SBasePlugin cloneObject() { 068 long cPtr = libsbmlJNI.LayoutSpeciesReferencePlugin_cloneObject(swigCPtr, this); 069 return (cPtr == 0) ? null : new LayoutSpeciesReferencePlugin(cPtr, true); 070 } 071 072}