/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 1.3.36
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */


public class OBPlugin {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  protected OBPlugin(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(OBPlugin obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if(swigCPtr != 0 && swigCMemOwn) {
      swigCMemOwn = false;
      openbabelJNI.delete_OBPlugin(swigCPtr);
    }
    swigCPtr = 0;
  }

  public String Description() {
    return openbabelJNI.OBPlugin_Description(swigCPtr, this);
  }

  public boolean Display(SWIGTYPE_p_std__string txt, String param, String ID) {
    return openbabelJNI.OBPlugin_Display__SWIG_0(swigCPtr, this, SWIGTYPE_p_std__string.getCPtr(txt), param, ID);
  }

  public boolean Display(SWIGTYPE_p_std__string txt, String param) {
    return openbabelJNI.OBPlugin_Display__SWIG_1(swigCPtr, this, SWIGTYPE_p_std__string.getCPtr(txt), param);
  }

  public OBPlugin MakeInstance(vectorString arg0) {
    long cPtr = openbabelJNI.OBPlugin_MakeInstance(swigCPtr, this, vectorString.getCPtr(arg0), arg0);
    return (cPtr == 0) ? null : new OBPlugin(cPtr, false);
  }

  public static OBPlugin GetPlugin(String Type, String ID) {
    long cPtr = openbabelJNI.OBPlugin_GetPlugin(Type, ID);
    return (cPtr == 0) ? null : new OBPlugin(cPtr, false);
  }

  public String GetID() {
    return openbabelJNI.OBPlugin_GetID(swigCPtr, this);
  }

  public static boolean ListAsVector(String PluginID, String param, vectorString vlist) {
    return openbabelJNI.OBPlugin_ListAsVector(PluginID, param, vectorString.getCPtr(vlist), vlist);
  }

  public static void List(String PluginID, String param, SWIGTYPE_p_std__ostream os) {
    openbabelJNI.OBPlugin_List__SWIG_0(PluginID, param, SWIGTYPE_p_std__ostream.getCPtr(os));
  }

  public static void List(String PluginID, String param) {
    openbabelJNI.OBPlugin_List__SWIG_1(PluginID, param);
  }

  public static void List(String PluginID) {
    openbabelJNI.OBPlugin_List__SWIG_2(PluginID);
  }

  public static String ListAsString(String PluginID, String param) {
    return openbabelJNI.OBPlugin_ListAsString__SWIG_0(PluginID, param);
  }

  public static String ListAsString(String PluginID) {
    return openbabelJNI.OBPlugin_ListAsString__SWIG_1(PluginID);
  }

  public static String FirstLine(String txt) {
    return openbabelJNI.OBPlugin_FirstLine(txt);
  }

  public static SWIGTYPE_p_OpenBabel__OBPlugin__PluginMapType__const_iterator Begin(String PluginID) {
    return new SWIGTYPE_p_OpenBabel__OBPlugin__PluginMapType__const_iterator(openbabelJNI.OBPlugin_Begin(PluginID), true);
  }

  public static SWIGTYPE_p_OpenBabel__OBPlugin__PluginMapType__const_iterator End(String PluginID) {
    return new SWIGTYPE_p_OpenBabel__OBPlugin__PluginMapType__const_iterator(openbabelJNI.OBPlugin_End(PluginID), true);
  }

  public SWIGTYPE_p_std__mapT_char_const_p_OpenBabel__OBPlugin_p_OpenBabel__CharPtrLess_t GetMap() {
    return new SWIGTYPE_p_std__mapT_char_const_p_OpenBabel__OBPlugin_p_OpenBabel__CharPtrLess_t(openbabelJNI.OBPlugin_GetMap(swigCPtr, this), false);
  }

}
