package com.sleepycat.dbxml;

/* ----------------------------------------------------------------------------
 * 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.
 * ----------------------------------------------------------------------------- */


class dbxml_javaJNI {

  static {
    // An alternate library name can be specified via a property.
    //
    String override;

    if ((override = System.getProperty("sleepycat.dbxml.libfile")) != null) {
      System.load(override);
    }
    else if ((override = System.getProperty("sleepycat.dbxml.libname")) != null) {
      System.loadLibrary(override);
    }
    else {
      String os = System.getProperty("os.name");
      if (os != null && os.startsWith("Windows")) {
        // library name is "libdbxml_java10.dll" (for example) on Windows
	String libname = "libdbxml_java" +
            XmlConstants.DBXML_VERSION_MAJOR + XmlConstants.DBXML_VERSION_MINOR;
        // add trailing "d" for debug build
	if (XmlConstants.DBXML_DEBUG)
		libname += "d";
        System.loadLibrary(libname);
      }
      else {
        // library name is "libdbxml_java-1.0.so" (for example) on UNIX
        // Note: "dbxml_java" isn't good enough;
        // some Unixes require us to use the explicit SONAME.
        System.loadLibrary("dbxml_java-" +
                   XmlConstants.DBXML_VERSION_MAJOR + "." +
                   XmlConstants.DBXML_VERSION_MINOR);
      }
    }

    initialize();
  }

  static native final void initialize();

  public final static native String get_metaDataNamespace_uri();
  public final static native String get_metaDataNamespace_prefix();
  public final static native String get_metaDataName_id();
  public final static native String get_metaDataName_name();
  public final static native String get_metaDataName_content();
  public final static native String get_metaDataName_default();
  public final static native String get_metaDataNamespace_prefix_debug();
  public final static native int get_LEVEL_NONE();
  public final static native int get_LEVEL_DEBUG();
  public final static native int get_LEVEL_INFO();
  public final static native int get_LEVEL_WARNING();
  public final static native int get_LEVEL_ERROR();
  public final static native int get_LEVEL_ALL();
  public final static native int get_CATEGORY_NONE();
  public final static native int get_CATEGORY_INDEXER();
  public final static native int get_CATEGORY_QUERY();
  public final static native int get_CATEGORY_OPTIMIZER();
  public final static native int get_CATEGORY_DICTIONARY();
  public final static native int get_CATEGORY_CONTAINER();
  public final static native int get_CATEGORY_ALL();
  public final static native long new_XmlContainer(com.sleepycat.db.DbEnv jarg1, String jarg2, int jarg3);
  public final static native void delete_XmlContainer(long jarg1);
  public final static native void XmlContainer_setPageSize(long jarg1, int jarg2);
  public final static native void XmlContainer_open(long jarg1, com.sleepycat.db.DbTxn jarg2, int jarg3, int jarg4);
  public final static native boolean XmlContainer_exists(long jarg1, com.sleepycat.db.DbTxn jarg2);
  public final static native boolean XmlContainer_isOpen(long jarg1);
  public final static native void XmlContainer_close(long jarg1, int jarg2);
  public final static native void XmlContainer_setIndexSpecification(long jarg1, com.sleepycat.db.DbTxn jarg2, long jarg3);
  public final static native void XmlContainer_addIndex(long jarg1, com.sleepycat.db.DbTxn jarg2, String jarg3, String jarg4, String jarg5);
  public final static native void XmlContainer_deleteIndex(long jarg1, com.sleepycat.db.DbTxn jarg2, String jarg3, String jarg4, String jarg5);
  public final static native void XmlContainer_replaceIndex(long jarg1, com.sleepycat.db.DbTxn jarg2, String jarg3, String jarg4, String jarg5);
  public final static native void XmlContainer_upgrade(long jarg1, int jarg2);
  public final static native long XmlContainer_getIndexSpecification(long jarg1, com.sleepycat.db.DbTxn jarg2);
  public final static native String XmlContainer_getName(long jarg1);
  public final static native void XmlContainer_setName(long jarg1, String jarg2);
  public final static native int XmlContainer_putDocument(long jarg1, com.sleepycat.db.DbTxn jarg2, long jarg3, long jarg4, int jarg5);
  public final static native void XmlContainer_updateDocument(long jarg1, com.sleepycat.db.DbTxn jarg2, long jarg3, long jarg4);
  public final static native void XmlContainer_remove(long jarg1, com.sleepycat.db.DbTxn jarg2, int jarg3);
  public final static native void XmlContainer_rename(long jarg1, com.sleepycat.db.DbTxn jarg2, String jarg3, int jarg4);
  /* package */ final static native void XmlContainer_deleteDocument__SWIG_0(long jarg1, com.sleepycat.db.DbTxn jarg2, int jarg3, long jarg4, int jarg5);
  public final static native void XmlContainer_deleteDocument__SWIG_1(long jarg1, com.sleepycat.db.DbTxn jarg2, long jarg3, long jarg4, int jarg5);
  public final static native void XmlContainer_modifyDocument(long jarg1, com.sleepycat.db.DbTxn jarg2, long jarg3, long jarg4, int jarg5);
  public final static native long XmlContainer_getDocument(long jarg1, com.sleepycat.db.DbTxn jarg2, int jarg3, int jarg4);
  public final static native long XmlContainer_parseXPathExpression(long jarg1, com.sleepycat.db.DbTxn jarg2, String jarg3, long jarg4);
  /* package */ final static native long XmlContainer_queryWithXPath__SWIG_0(long jarg1, com.sleepycat.db.DbTxn jarg2, String jarg3, long jarg4, int jarg5);
  public final static native long XmlContainer_queryWithXPath__SWIG_1(long jarg1, com.sleepycat.db.DbTxn jarg2, long jarg3, int jarg4);
  public final static native void XmlContainer_dump(long jarg1, String jarg2, int jarg3);
  public final static native void XmlContainer_load(long jarg1, String jarg2, int jarg3);
  public final static native void XmlContainer_verify(long jarg1, String jarg2, int jarg3);
  public final static native void XmlContainer_setLogLevel(int jarg1, boolean jarg2);
  public final static native void XmlContainer_setLogCategory(int jarg1, boolean jarg2);
  public final static native int XmlContainer_get_version_major();
  public final static native int XmlContainer_get_version_minor();
  public final static native int XmlContainer_get_version_patch();
  public final static native String XmlContainer_get_version_string();
  public final static native long new_XmlDocument();
  public final static native void delete_XmlDocument(long jarg1);
  public final static native int XmlDocument_getID(long jarg1);
  public final static native void XmlDocument_setName(long jarg1, String jarg2);
  public final static native String XmlDocument_getName(long jarg1);
  /* package */ final static native void XmlDocument_setContent__SWIG_0(long jarg1, byte[] jarg2);
  public final static native byte[] XmlDocument_getContent(long jarg1);
  public final static native void XmlDocument_setContent__SWIG_1(long jarg1, String jarg2);
  public final static native void XmlDocument_modifyDocument(long jarg1, long jarg2);
  public final static native String XmlDocument_getContentAsString(long jarg1);
  public final static native void XmlDocument_setMetaData(long jarg1, String jarg2, String jarg3, String jarg4, long jarg5);
  public final static native boolean XmlDocument_getMetaData(long jarg1, String jarg2, String jarg3, long jarg4);
  /* package */ final static native long XmlDocument_queryWithXPath__SWIG_0(long jarg1, String jarg2, long jarg3);
  public final static native long XmlDocument_queryWithXPath__SWIG_1(long jarg1, long jarg2);
  public final static native int get_XmlQueryContext_ResultDocuments();
  public final static native int get_XmlQueryContext_ResultValues();
  public final static native int get_XmlQueryContext_CandidateDocuments();
  public final static native int get_XmlQueryContext_ResultDocumentsAndValues();
  public final static native int get_XmlQueryContext_Eager();
  public final static native int get_XmlQueryContext_Lazy();
  public final static native long new_XmlQueryContext(int jarg1, int jarg2);
  public final static native void delete_XmlQueryContext(long jarg1);
  public final static native void XmlQueryContext_setNamespace(long jarg1, String jarg2, String jarg3);
  public final static native String XmlQueryContext_getNamespace(long jarg1, String jarg2);
  public final static native void XmlQueryContext_removeNamespace(long jarg1, String jarg2);
  public final static native void XmlQueryContext_clearNamespaces(long jarg1);
  public final static native void XmlQueryContext_setVariableValue(long jarg1, String jarg2, long jarg3);
  public final static native void XmlQueryContext_setReturnType(long jarg1, int jarg2);
  public final static native int XmlQueryContext_getReturnType(long jarg1);
  public final static native void XmlQueryContext_setEvaluationType(long jarg1, int jarg2);
  public final static native int XmlQueryContext_getEvaluationType(long jarg1);
  public final static native void XmlQueryContext_setWithMetaData(long jarg1, boolean jarg2);
  public final static native boolean XmlQueryContext_getWithMetaData(long jarg1);
  public final static native long XmlQueryContext_getVariableValue(long jarg1, String jarg2);
  public final static native long new_XmlResults(long jarg1, com.sleepycat.db.DbTxn jarg2);
  public final static native void delete_XmlResults(long jarg1);
  /* package */ final static native long XmlResults_next__SWIG_0(long jarg1);
  public final static native boolean XmlResults_next__SWIG_1(long jarg1, long jarg2);
  public final static native boolean XmlResults_next__SWIG_2(long jarg1, long jarg2, long jarg3);
  public final static native long XmlResults_next__SWIG_3(long jarg1, com.sleepycat.db.DbTxn jarg2);
  public final static native boolean XmlResults_nextDocument(long jarg1, com.sleepycat.db.DbTxn jarg2, long jarg3);
  public final static native boolean XmlResults_nextDocumentAndValue(long jarg1, com.sleepycat.db.DbTxn jarg2, long jarg3, long jarg4);
  public final static native void XmlResults_reset(long jarg1);
  public final static native int XmlResults_size(long jarg1);
  public final static native void XmlResults_add(long jarg1, long jarg2);
  public final static native long new_XmlUpdateContext(long jarg1);
  public final static native void delete_XmlUpdateContext(long jarg1);
  public final static native int get_XmlValue_NONE();
  public final static native int get_XmlValue_STRING();
  public final static native int get_XmlValue_NUMBER();
  public final static native int get_XmlValue_BOOLEAN();
  public final static native int get_XmlValue_DOCUMENT();
  public final static native int get_XmlValue_NODE();
  public final static native int get_XmlValue_VARIABLE();
  public final static native int get_XmlValue_BINARY();
  /* package */ final static native long new_XmlValue__SWIG_0();
  public final static native long new_XmlValue__SWIG_1(long jarg1);
  public final static native long new_XmlValue__SWIG_2(double jarg1);
  public final static native long new_XmlValue__SWIG_3(String jarg1);
  public final static native long new_XmlValue__SWIG_4(boolean jarg1);
  public final static native long new_XmlValue__SWIG_5(int jarg1, String jarg2);
  public final static native void delete_XmlValue(long jarg1);
  public final static native int XmlValue_getType(long jarg1, long jarg2);
  public final static native boolean XmlValue_isNumber(long jarg1, long jarg2);
  public final static native boolean XmlValue_isString(long jarg1, long jarg2);
  public final static native boolean XmlValue_isBoolean(long jarg1, long jarg2);
  public final static native boolean XmlValue_isNode(long jarg1, long jarg2);
  public final static native boolean XmlValue_isDocument(long jarg1, long jarg2);
  public final static native boolean XmlValue_isVariable(long jarg1, long jarg2);
  public final static native boolean XmlValue_isNull(long jarg1);
  public final static native double XmlValue_asNumber(long jarg1, long jarg2);
  public final static native String XmlValue_asString(long jarg1, long jarg2);
  public final static native boolean XmlValue_asBoolean(long jarg1, long jarg2);
  public final static native long XmlValue_asDocument(long jarg1, long jarg2);
  public final static native boolean XmlValue_equals(long jarg1, long jarg2, long jarg3);
  public final static native long new_XmlIndexSpecification();
  public final static native void delete_XmlIndexSpecification(long jarg1);
  public final static native void XmlIndexSpecification_addIndex(long jarg1, String jarg2, String jarg3, String jarg4);
  public final static native void XmlIndexSpecification_deleteIndex(long jarg1, String jarg2, String jarg3, String jarg4);
  public final static native void XmlIndexSpecification_replaceIndex(long jarg1, String jarg2, String jarg3, String jarg4);
  public final static native void XmlIndexSpecification_reset(long jarg1);
  public final static native XmlIndexDeclaration XmlIndexSpecification_find(long jarg1, String jarg2, String jarg3);
  public final static native XmlIndexDeclaration XmlIndexSpecification_next(long jarg1);
  public final static native long new_XmlQueryExpression(long jarg1, long jarg2);
  public final static native void delete_XmlQueryExpression(long jarg1);
  public final static native long XmlQueryExpression_getQueryContext(long jarg1);
  public final static native long XmlQueryExpression_getContainer(long jarg1);
  public final static native String XmlQueryExpression_getXPathQuery(long jarg1);
  public final static native int get_XmlModify_InsertAfter();
  public final static native int get_XmlModify_InsertBefore();
  public final static native int get_XmlModify_Append();
  public final static native int get_XmlModify_Update();
  public final static native int get_XmlModify_Remove();
  public final static native int get_XmlModify_Rename();
  public final static native int get_XmlModify_Element();
  public final static native int get_XmlModify_Attribute();
  public final static native int get_XmlModify_Text();
  public final static native int get_XmlModify_ProcessingInstruction();
  public final static native int get_XmlModify_Comment();
  public final static native int get_XmlModify_None();
  /* package */ final static native long new_XmlModify__SWIG_0(String jarg1, int jarg2, int jarg3, String jarg4, String jarg5, int jarg6, long jarg7);
  public final static native long new_XmlModify__SWIG_1(long jarg1, int jarg2, int jarg3, String jarg4, String jarg5, int jarg6);
  public final static native void delete_XmlModify(long jarg1);
  public final static native void XmlModify_setNewEncoding(long jarg1, String jarg2);
  public final static native int XmlModify_getNumModifications(long jarg1);
}
