001/* ----------------------------------------------------------------------------
002 * This file was automatically generated by SWIG (http://www.swig.org).
003 * Version 3.0.7
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 RenderGraphicalObjectPlugin extends SBasePlugin {
012   private long swigCPtr;
013
014   protected RenderGraphicalObjectPlugin(long cPtr, boolean cMemoryOwn)
015   {
016     super(libsbmlJNI.RenderGraphicalObjectPlugin_SWIGUpcast(cPtr), cMemoryOwn);
017     swigCPtr = cPtr;
018   }
019
020   protected static long getCPtr(RenderGraphicalObjectPlugin obj)
021   {
022     return (obj == null) ? 0 : obj.swigCPtr;
023   }
024
025   protected static long getCPtrAndDisown (RenderGraphicalObjectPlugin 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_RenderGraphicalObjectPlugin(swigCPtr);
047      }
048      swigCPtr = 0;
049    }
050    super.delete();
051  }
052
053  
054/**
055   * Constructor
056   */ public
057 RenderGraphicalObjectPlugin(String uri, String prefix, RenderPkgNamespaces groupsns) {
058    this(libsbmlJNI.new_RenderGraphicalObjectPlugin__SWIG_0(uri, prefix, RenderPkgNamespaces.getCPtr(groupsns), groupsns), true);
059  }
060
061  
062/**
063   * Copy constructor. Creates a copy of this {@link SBase} object.
064   */ public
065 RenderGraphicalObjectPlugin(RenderGraphicalObjectPlugin orig) {
066    this(libsbmlJNI.new_RenderGraphicalObjectPlugin__SWIG_1(RenderGraphicalObjectPlugin.getCPtr(orig), orig), true);
067  }
068
069  
070/**
071   * Creates and returns a deep copy of this RenderGraphicalObjectPlugin  object.
072   <p>
073   * @return a (deep) copy of this RenderGraphicalObjectPlugin object
074   */ public
075 SBasePlugin cloneObject() {
076    long cPtr = libsbmlJNI.RenderGraphicalObjectPlugin_cloneObject(swigCPtr, this);
077    return (cPtr == 0) ? null : new RenderGraphicalObjectPlugin(cPtr, true);
078  }
079
080  
081/** * @internal */ public
082 void addExpectedAttributes(SWIGTYPE_p_ExpectedAttributes attributes) {
083    libsbmlJNI.RenderGraphicalObjectPlugin_addExpectedAttributes(swigCPtr, this, SWIGTYPE_p_ExpectedAttributes.getCPtr(attributes));
084  }
085
086  
087/** * @internal */ public
088 void readAttributes(XMLAttributes attributes, SWIGTYPE_p_ExpectedAttributes expectedAttributes) {
089    libsbmlJNI.RenderGraphicalObjectPlugin_readAttributes(swigCPtr, this, XMLAttributes.getCPtr(attributes), attributes, SWIGTYPE_p_ExpectedAttributes.getCPtr(expectedAttributes));
090  }
091
092  
093/** * @internal */ public
094 void writeAttributes(XMLOutputStream stream) {
095    libsbmlJNI.RenderGraphicalObjectPlugin_writeAttributes(swigCPtr, this, XMLOutputStream.getCPtr(stream), stream);
096  }
097
098  
099/**
100     * Returns the object role string for the object.
101     */ public
102 String getObjectRole() {
103    return libsbmlJNI.RenderGraphicalObjectPlugin_getObjectRole(swigCPtr, this);
104  }
105
106  
107/**
108     * Sets the object role string for the object.
109     */ public
110 void setObjectRole(String role) {
111    libsbmlJNI.RenderGraphicalObjectPlugin_setObjectRole(swigCPtr, this, role);
112  }
113
114  
115/**
116     * Returns whether the object role has been set or not.
117     */ public
118 boolean isSetObjectRole() {
119    return libsbmlJNI.RenderGraphicalObjectPlugin_isSetObjectRole(swigCPtr, this);
120  }
121
122}