/* ----------------------------------------------------------------------------
 * 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 XmlDocument : IDisposable {
  private IntPtr swigCPtr;
  protected bool swigCMemOwn;

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

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

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

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

  public XmlDocument() : this(dbxml_dotnetPINVOKE.new_XmlDocument(), true) {
  }

  public uint getID() {
    return dbxml_dotnetPINVOKE.XmlDocument_getID(swigCPtr);
  }

  public void setName(SWIGTYPE_p_std__string name) {
    dbxml_dotnetPINVOKE.XmlDocument_setName(swigCPtr, SWIGTYPE_p_std__string.getCPtr(name));
  }

  public SWIGTYPE_p_std__string getName() {
    return new SWIGTYPE_p_std__string(dbxml_dotnetPINVOKE.XmlDocument_getName(swigCPtr), true);
  }

  public void setContent(SWIGTYPE_p_Dbt content) {
    dbxml_dotnetPINVOKE.XmlDocument_setContent__SWIG_0(swigCPtr, SWIGTYPE_p_Dbt.getCPtr(content));
  }

  public SWIGTYPE_p_Dbt getContent() {
    IntPtr cPtr = dbxml_dotnetPINVOKE.XmlDocument_getContent(swigCPtr);
    return (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_Dbt(cPtr, false);
  }

  public void setContent(SWIGTYPE_p_std__string content) {
    dbxml_dotnetPINVOKE.XmlDocument_setContent__SWIG_1(swigCPtr, SWIGTYPE_p_std__string.getCPtr(content));
  }

  public void modifyDocument(XmlModify modify) {
    dbxml_dotnetPINVOKE.XmlDocument_modifyDocument(swigCPtr, XmlModify.getCPtr(modify));
  }

  public SWIGTYPE_p_std__string getContentAsString() {
    return new SWIGTYPE_p_std__string(dbxml_dotnetPINVOKE.XmlDocument_getContentAsString(swigCPtr), true);
  }

  public void setMetaData(SWIGTYPE_p_std__string uri, SWIGTYPE_p_std__string prefix, SWIGTYPE_p_std__string name, XmlValue value) {
    dbxml_dotnetPINVOKE.XmlDocument_setMetaData(swigCPtr, SWIGTYPE_p_std__string.getCPtr(uri), SWIGTYPE_p_std__string.getCPtr(prefix), SWIGTYPE_p_std__string.getCPtr(name), XmlValue.getCPtr(value));
  }

  public bool getMetaData(SWIGTYPE_p_std__string uri, SWIGTYPE_p_std__string name, XmlValue value) {
    return dbxml_dotnetPINVOKE.XmlDocument_getMetaData(swigCPtr, SWIGTYPE_p_std__string.getCPtr(uri), SWIGTYPE_p_std__string.getCPtr(name), XmlValue.getCPtr(value));
  }

  public XmlResults queryWithXPath(SWIGTYPE_p_std__string query, XmlQueryContext context) {
    IntPtr cPtr = dbxml_dotnetPINVOKE.XmlDocument_queryWithXPath__SWIG_0(swigCPtr, SWIGTYPE_p_std__string.getCPtr(query), XmlQueryContext.getCPtr(context));
    return (cPtr == IntPtr.Zero) ? null : new XmlResults(cPtr, true);
  }

  public XmlResults queryWithXPath(XmlQueryExpression query) {
    IntPtr cPtr = dbxml_dotnetPINVOKE.XmlDocument_queryWithXPath__SWIG_1(swigCPtr, XmlQueryExpression.getCPtr(query));
    return (cPtr == IntPtr.Zero) ? null : new XmlResults(cPtr, true);
  }

}
