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


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

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

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

  protected void finalize() {
    delete();
  }

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

  public float getValue() {
    return CLjavaJNI.Explanation_getValue(swigCPtr);
  }

  public void setValue(float value) {
    CLjavaJNI.Explanation_setValue(swigCPtr, value);
  }

  public String getDescription() {
    return CLjavaJNI.Explanation_getDescription(swigCPtr);
  }

  public void addDetail(Explanation detail) {
    CLjavaJNI.Explanation_addDetail(swigCPtr, Explanation.getCPtr(detail));
  }

  public String toString() {
    return CLjavaJNI.Explanation_toString(swigCPtr);
  }

  public String toHtml() {
    return CLjavaJNI.Explanation_toHtml(swigCPtr);
  }

}
