 
    ;; JsonItem TODO
    "null-node()" java-json->clj-json ;; NullNode
-   "number-node()" convert-number ;; NumberNode
+   "number-node()" java->num ;; NumberNode
    "object-node()" java-json->clj-json ;; ObjectNode
 
    ;; XdmAtomic TODO

   :none   DocumentFormat/NONE
   :binary DocumentFormat/BINARY})

(def doc-repair-level
  "Enumeration of document repair levels. Used at insertion time.
  See https://docs.marklogic.com/javadoc/xcc/com/marklogic/xcc/DocumentRepairLevel.html"
  {:default DocumentRepairLevel/DEFAULT
   :full    DocumentRepairLevel/FULL
   :none    DocumentRepairLevel/NONE})

(def content-capability
  "Enumeration of content permission capability values.
  See https://docs.marklogic.com/javadoc/xcc/com/marklogic/xcc/ContentCapability.html"
  {:execute ContentCapability/EXECUTE
   :insert  ContentCapability/INSERT
   :read    ContentCapability/READ
   :update  ContentCapability/UPDATE})

(def transaction-modes
  "Enumeration of valid Session transaction modes. See
  https://docs.marklogic.com/javadoc/xcc/com/marklogic/xcc/Session.TransactionMode.html"
  {:auto Session$TransactionMode/AUTO
   :query Session$TransactionMode/QUERY

   :version-minor (Version/getVersionMinor)
   :version-patch (Version/getVersionPatch)})

(def ->doc-format
  "Mapping of keywords to allowed document formats. Used at insertion
  time.
  See https://docs.marklogic.com/javadoc/xcc/com/marklogic/xcc/DocumentFormat.html"
  {:xml DocumentFormat/XML
