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

package edu.umn.gis.mapscript;


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

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

  protected outputFormatObj() {
    this(0, false);
  }

  protected void finalize() {
    delete();
  }

  public void delete() {
    if(swigCPtr != 0 && swigCMemOwn) {
      swigCMemOwn = false;
      mapscriptJNI.delete_outputFormatObj(swigCPtr);
    }
    swigCPtr = 0;
  }

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

  public void setName(String name) {
    mapscriptJNI.set_outputFormatObj_name(swigCPtr, name);
  }

  public String getName() {
    return mapscriptJNI.get_outputFormatObj_name(swigCPtr);
  }

  public void setMimetype(String mimetype) {
    mapscriptJNI.set_outputFormatObj_mimetype(swigCPtr, mimetype);
  }

  public String getMimetype() {
    return mapscriptJNI.get_outputFormatObj_mimetype(swigCPtr);
  }

  public void setDriver(String driver) {
    mapscriptJNI.set_outputFormatObj_driver(swigCPtr, driver);
  }

  public String getDriver() {
    return mapscriptJNI.get_outputFormatObj_driver(swigCPtr);
  }

  public void setExtension(String extension) {
    mapscriptJNI.set_outputFormatObj_extension(swigCPtr, extension);
  }

  public String getExtension() {
    return mapscriptJNI.get_outputFormatObj_extension(swigCPtr);
  }

  public void setRenderer(int renderer) {
    mapscriptJNI.set_outputFormatObj_renderer(swigCPtr, renderer);
  }

  public int getRenderer() {
    return mapscriptJNI.get_outputFormatObj_renderer(swigCPtr);
  }

  public void setImagemode(int imagemode) {
    mapscriptJNI.set_outputFormatObj_imagemode(swigCPtr, imagemode);
  }

  public int getImagemode() {
    return mapscriptJNI.get_outputFormatObj_imagemode(swigCPtr);
  }

  public void setTransparent(int transparent) {
    mapscriptJNI.set_outputFormatObj_transparent(swigCPtr, transparent);
  }

  public int getTransparent() {
    return mapscriptJNI.get_outputFormatObj_transparent(swigCPtr);
  }

  public void setBands(int bands) {
    mapscriptJNI.set_outputFormatObj_bands(swigCPtr, bands);
  }

  public int getBands() {
    return mapscriptJNI.get_outputFormatObj_bands(swigCPtr);
  }

  public void setNumformatoptions(int numformatoptions) {
    mapscriptJNI.set_outputFormatObj_numformatoptions(swigCPtr, numformatoptions);
  }

  public int getNumformatoptions() {
    return mapscriptJNI.get_outputFormatObj_numformatoptions(swigCPtr);
  }

  public void setFormatoptions(SWIGTYPE_p_p_char formatoptions) {
    mapscriptJNI.set_outputFormatObj_formatoptions(swigCPtr, SWIGTYPE_p_p_char.getCPtr(formatoptions));
  }

  public SWIGTYPE_p_p_char getFormatoptions() {
    long cPtr = mapscriptJNI.get_outputFormatObj_formatoptions(swigCPtr);
    return (cPtr == 0) ? null : new SWIGTYPE_p_p_char(cPtr, false);
  }

  public void setRefcount(int refcount) {
    mapscriptJNI.set_outputFormatObj_refcount(swigCPtr, refcount);
  }

  public int getRefcount() {
    return mapscriptJNI.get_outputFormatObj_refcount(swigCPtr);
  }

  public void setInmapfile(int inmapfile) {
    mapscriptJNI.set_outputFormatObj_inmapfile(swigCPtr, inmapfile);
  }

  public int getInmapfile() {
    return mapscriptJNI.get_outputFormatObj_inmapfile(swigCPtr);
  }

  public outputFormatObj(String driver, String name) {
    this(mapscriptJNI.new_outputFormatObj(driver, name), true);
  }

  public void setOption(String key, String value) {
    mapscriptJNI.outputFormatObj_setOption(swigCPtr, key, value);
  }

  public int validate() {
    return mapscriptJNI.outputFormatObj_validate(swigCPtr);
  }

  public String getOption(String key, String value) {
    return mapscriptJNI.outputFormatObj_getOption(swigCPtr, key, value);
  }

}
