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
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/**
082   * Subclasses should override this method to get the list of
083   * expected attributes.
084   * This function is invoked from corresponding readAttributes()
085   * function.
086   * @internal
087   */ public
088 void addExpectedAttributes(SWIGTYPE_p_ExpectedAttributes attributes) {
089    libsbmlJNI.RenderGraphicalObjectPlugin_addExpectedAttributes(swigCPtr, this, SWIGTYPE_p_ExpectedAttributes.getCPtr(attributes));
090  }
091
092  
093/**
094   * Reads the attributes of corresponding package in {@link SBMLDocument} element.
095   * @internal
096   */ public
097 void readAttributes(XMLAttributes attributes, SWIGTYPE_p_ExpectedAttributes expectedAttributes) {
098    libsbmlJNI.RenderGraphicalObjectPlugin_readAttributes(swigCPtr, this, XMLAttributes.getCPtr(attributes), attributes, SWIGTYPE_p_ExpectedAttributes.getCPtr(expectedAttributes));
099  }
100
101  
102/**
103   * Writes the attributes of corresponding package in {@link SBMLDocument} element.
104   * @internal
105   */ public
106 void writeAttributes(XMLOutputStream stream) {
107    libsbmlJNI.RenderGraphicalObjectPlugin_writeAttributes(swigCPtr, this, XMLOutputStream.getCPtr(stream), stream);
108  }
109
110  
111/**
112     * Returns the object role string for the object.
113     */ public
114 String getObjectRole() {
115    return libsbmlJNI.RenderGraphicalObjectPlugin_getObjectRole(swigCPtr, this);
116  }
117
118  
119/**
120     * Sets the object role string for the object.
121     */ public
122 void setObjectRole(String role) {
123    libsbmlJNI.RenderGraphicalObjectPlugin_setObjectRole(swigCPtr, this, role);
124  }
125
126  
127/**
128     * Returns whether the object role has been set or not.
129     */ public
130 boolean isSetObjectRole() {
131    return libsbmlJNI.RenderGraphicalObjectPlugin_isSetObjectRole(swigCPtr, this);
132  }
133
134}