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

using System;
public class XmlQueryExpression : IDisposable {
  private IntPtr swigCPtr;
  protected bool swigCMemOwn;

  internal XmlQueryExpression(IntPtr cPtr, bool cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected XmlQueryExpression() : this(IntPtr.Zero, false) {
  }

  public virtual void Dispose() {
    delete();
  }

  protected virtual void delete() {
    if(swigCPtr != IntPtr.Zero && swigCMemOwn) {
      dbxml_dotnetPINVOKE.delete_XmlQueryExpression(swigCPtr);
      swigCMemOwn = false;
    }
    swigCPtr = IntPtr.Zero;
  }

  internal static IntPtr getCPtr(XmlQueryExpression obj) {
    return (obj == null) ? IntPtr.Zero : obj.swigCPtr;
  }

  public XmlQueryExpression(XmlContainer arg0, XmlQueryContext arg1) : this(dbxml_dotnetPINVOKE.new_XmlQueryExpression(XmlContainer.getCPtr(arg0), XmlQueryContext.getCPtr(arg1)), true) {
  }

  public XmlQueryContext getQueryContext() {
    return new XmlQueryContext(dbxml_dotnetPINVOKE.XmlQueryExpression_getQueryContext(swigCPtr), false);
  }

  public XmlContainer getContainer() {
    return new XmlContainer(dbxml_dotnetPINVOKE.XmlQueryExpression_getContainer(swigCPtr), false);
  }

  public string getXPathQuery() {
    return dbxml_dotnetPINVOKE.XmlQueryExpression_getXPathQuery(swigCPtr);
  }

}
