/usr/lib/ocaml/galax/dm.mli is in libgalax-ocaml-dev 1.1-12.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 | (***********************************************************************)
(* *)
(* GALAX *)
(* XQuery Engine *)
(* *)
(* Copyright 2001-2007. *)
(* Distributed only by permission. *)
(* *)
(***********************************************************************)
(* $Id: dm.mli,v 1.39 2007/08/23 21:01:32 simeon Exp $ *)
(* Module: Dm
Description:
Galax's abstract data model interface.
*)
open Hashtbl
open Namespace_symbols
open Namespace_context
open Xquery_common_ast
open Xquery_algebra_ast
open Xquery_type_core_ast
open Cursor
open Datatypes
open Dm_atomic
open Dm_types
(********************************)
(* Generic node class hierarchy *)
(********************************)
class virtual node :
object
(* Each node must provide a means to identify the implementation it
comes from *)
method virtual implementation : unit -> string
(* DM access operations *)
method get_access_ops_dm : node access_ops
(* Downcasts *)
method virtual getDocumentNode : unit -> document
method virtual getElementNode : unit -> element
method virtual getAttributeNode : unit -> attribute
method virtual getTextNode : unit -> text
method virtual getProcessingInstructionNode : unit -> processingInstruction
method virtual getCommentNode : unit -> comment
(* Infoset accessors *)
method virtual node_name : unit -> atomicQName option
method virtual base_uri : unit -> atomicAnyURI option ref
method virtual node_kind : unit -> _NodeKind
method virtual string_value : unit -> xs_string
(* PSVI accessors *)
method virtual typed_value : unit -> atomicValue cursor
(* Axes *)
method virtual parent : (cxschema option * anode_test) option -> node option
method virtual children : (cxschema option * anode_test) option -> node cursor
method virtual attributes : (cxschema option * anode_test) option -> attribute cursor
method self : (cxschema option * anode_test) option -> node cursor
method descendant_or_self : (cxschema option * anode_test) option -> node cursor
method descendant : (cxschema option * anode_test) option -> node cursor
method ancestor_or_self : (cxschema option * anode_test) option -> node cursor
method ancestor : (cxschema option * anode_test) option -> node cursor
method following : (cxschema option * anode_test) option -> node cursor
method preceding : (cxschema option * anode_test) option -> node cursor
(* Node identity *)
(* nodeids are immutable *)
method virtual nodeid : unit -> Nodeid.nodeid
(* nodeids are mutable : can change if document is updated *)
method virtual docorder : unit -> Nodeid.docorder
method virtual update_parent : node -> unit
method virtual reset_parent : unit -> unit
(* Updates *)
method virtual delete : node -> unit
method virtual detach : node -> unit
method virtual insert : node cursor -> node -> unit
method virtual insert_first : node cursor -> unit
method virtual replace : node cursor -> node -> unit
method virtual replace_value : text -> unit
method virtual rename : xs_QName -> unit
(* Added for convenience *)
method virtual node_lang : unit -> xs_string option
end
and virtual document :
atomicAnyURI option ref ->
object
inherit node
(* Downcasts *)
method getDocumentNode : unit -> document
method getElementNode : unit -> element
method getAttributeNode : unit -> attribute
method getTextNode : unit -> text
method getProcessingInstructionNode : unit -> processingInstruction
method getCommentNode : unit -> comment
(* Infoset accessors *)
method node_name : unit -> atomicQName option
method base_uri : unit -> atomicAnyURI option ref
method node_kind : unit -> _NodeKind
method string_value : unit -> xs_string
(* PSVI accessors *)
method typed_value : unit -> atomicValue cursor
(* Axes *)
method parent : (cxschema option * anode_test) option -> node option
method attributes : (cxschema option * anode_test) option -> attribute cursor
(* Accessors specific to document nodes *)
(* Infoset accessors *)
method virtual document_uri : unit -> atomicAnyURI option
(* Updates *)
method replace : node cursor -> node -> unit
method replace_value : text -> unit
method rename : xs_QName -> unit
(* Added for convenience *)
method node_lang : unit -> xs_string option
end
and virtual element :
atomicAnyURI option ref ->
object
inherit node
(* Downcasts *)
method getDocumentNode : unit -> document
method getElementNode : unit -> element
method getAttributeNode : unit -> attribute
method getTextNode : unit -> text
method getProcessingInstructionNode : unit -> processingInstruction
method getCommentNode : unit -> comment
(* Infoset accessors *)
method base_uri : unit -> atomicAnyURI option ref
method node_kind : unit -> _NodeKind
method string_value : unit -> xs_string
(* Accessors specific to element nodes *)
(* Infoset accessors *)
method virtual elemName : unit -> relem_symbol
method virtual namespace_environment : unit -> nsenv
(* PSVI accessors *)
method virtual nilled : unit -> nilled
method has_element_content : unit -> bool
method virtual node_type : unit -> rtype_symbol
method virtual export_typed_value : unit -> atomicValue list
(* Added for convenience *)
method node_lang : unit -> xs_string option
(* Updates *)
method virtual rename : xs_QName -> unit
end
and virtual attribute :
object
inherit node
(* Downcasts *)
method getDocumentNode : unit -> document
method getElementNode : unit -> element
method getAttributeNode : unit -> attribute
method getTextNode : unit -> text
method getProcessingInstructionNode : unit -> processingInstruction
method getCommentNode : unit -> comment
(* Infoset accessors *)
method base_uri : unit -> atomicAnyURI option ref
method node_kind : unit -> _NodeKind
(* Axes *)
method children : (cxschema option * anode_test) option -> node cursor
method attributes : (cxschema option * anode_test) option -> attribute cursor
(* Accessors specific to attribute nodes *)
(* Infoset accessors *)
method virtual attrName : unit -> rattr_symbol
(* PSVI accessors *)
method virtual node_type : unit -> rtype_symbol
method virtual export_typed_value : unit -> atomicValue list
(* Updates *)
method delete : node -> unit
method detach : node -> unit
method insert : node cursor -> node -> unit
method insert_first : node cursor -> unit
method replace : node cursor -> node -> unit
method virtual rename : xs_QName -> unit
(* Added for convenience *)
method node_lang : unit -> xs_string option
end
and virtual text :
object
inherit node
(* Downcasts *)
method getDocumentNode : unit -> document
method getElementNode : unit -> element
method getAttributeNode : unit -> attribute
method getTextNode : unit -> text
method getProcessingInstructionNode : unit -> processingInstruction
method getCommentNode : unit -> comment
(* Infoset accessors *)
method base_uri : unit -> atomicAnyURI option ref
method node_kind : unit -> _NodeKind
method node_name : unit -> atomicQName option
(* PSVI accessors *)
method typed_value : unit -> atomicValue cursor
(* Axes *)
method children : (cxschema option * anode_test) option -> node cursor
method attributes : (cxschema option * anode_test) option -> attribute cursor
(* Updates *)
method delete : node -> unit
method detach : node -> unit
method insert : node cursor -> node -> unit
method insert_first : node cursor -> unit
method replace : node cursor -> node -> unit
method rename : xs_QName -> unit
(* Added for convenience *)
method node_lang : unit -> xs_string option
end
and virtual comment :
object
inherit node
(* Downcasts *)
method getDocumentNode : unit -> document
method getElementNode : unit -> element
method getAttributeNode : unit -> attribute
method getTextNode : unit -> text
method getProcessingInstructionNode : unit -> processingInstruction
method getCommentNode : unit -> comment
(* Infoset accessors *)
method base_uri : unit -> atomicAnyURI option ref
method node_kind : unit -> _NodeKind
method node_name : unit -> atomicQName option
(* PSVI accessors *)
method typed_value : unit -> atomicValue cursor
(* Axes *)
method children : (cxschema option * anode_test) option -> node cursor
method attributes : (cxschema option * anode_test) option -> attribute cursor
(* Updates *)
method delete : node -> unit
method detach : node -> unit
method insert : node cursor -> node -> unit
method insert_first : node cursor -> unit
method replace : node cursor -> node -> unit
method rename : xs_QName -> unit
(* Added for convenience *)
method node_lang : unit -> xs_string option
end
and virtual processingInstruction :
object
inherit node
(* Downcasts *)
method getDocumentNode : unit -> document
method getElementNode : unit -> element
method getAttributeNode : unit -> attribute
method getTextNode : unit -> text
method getProcessingInstructionNode : unit -> processingInstruction
method getCommentNode : unit -> comment
(* Infoset accessors *)
method base_uri : unit -> atomicAnyURI option ref
method node_kind : unit -> _NodeKind
(* PSVI accessors *)
method typed_value : unit -> atomicValue cursor
(* Axes *)
method children : (cxschema option * anode_test) option -> node cursor
method attributes : (cxschema option * anode_test) option -> attribute cursor
(* Accessors specific to processing instruction nodes *)
(* Infoset accessors *)
method virtual target : unit -> atomicString (* atomicString, An NCName *)
method virtual content : unit -> atomicString (* An NCName *)
(* Updates *)
method delete : node -> unit
method detach : node -> unit
method insert : node cursor -> node -> unit
method insert_first : node cursor -> unit
method replace : node cursor -> node -> unit
method virtual rename : xs_QName -> unit
(* Added for convenience *)
method node_lang : unit -> xs_string option
end
|