File: bdbxml.rd

package info (click to toggle)
libdb2-ruby 0.5.4-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,352 kB
  • ctags: 2,743
  • sloc: ansic: 11,156; ruby: 6,199; cpp: 6,064; makefile: 86; sh: 31
file content (108 lines) | stat: -rw-r--r-- 2,889 bytes parent folder | download | duplicates (11)
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
=begin
= BDB::XML

# module BDB
#^

Berkeley DB XML is an embedded native XML datastore that provides for
the efficient storage and retrieval of XML encoded information.

Retrieval is supported by an XPath query engine that derives its efficiency
from indices generated from the stored XML data.
#^
# module XML
#

((<BDB::XML::Container|URL:docs/container.html>))

#^
The container name provides the base for the filenames of the database
files used to store the container content. The directory within which
the files are opened is taken from the environment passed through the
Container constructor.  If no environment was provided, then the
directory used will be the current working directory.
#^
# class Container
# end

((<BDB::XML::Index|URL:docs/index.html>))

#^
Define the indexing strategy for a Container

Indexing is specified by providing the name of a node and a list of indexing
strategies for that node.
#^
# class Index
# end

((<BDB::XML::Document|URL:docs/document.html>))

#^
A Document is the unit of storage within a Container. 

A Document contains a stream of bytes that may be of type XML.
The Container only indexes the content of Documents
that contain XML.

Document supports annotation attributes.

#^
# class Document
# end

((<BDB::XML::Context|URL:docs/context.html>))

#^
The context within which a query is performed against a Container. 

The context within which a query is performed against a Container
is complex enough to warrent an encapsulating class. This context
includes a namespace mapping, variable bindings, and flags that 
determine how the query result set should be determined and returned
to the caller.

The XPath syntax permits expressions to refer to namespace prefixes, but
not to define them. The Context class provides a number of namespace 
management methods so that the caller may manage the namespace prefix
to URI mapping.

The XPath syntax also permits expressions to refer to variables, but not
to define them. The Context class provides a number of methods so
that the caller may manage the variable to value bindings.
#^
# class Context
# end

((<BDB::XML::Modify|URL:docs/modify.html>))

#^
Modify encapsulates the context within which a set of documents specified by
a query can be modified in place. 

The modification is performed using the methods 
((|BDB::XML::Container#modify|)) and ((|BDB::XML::Document#modify|))

There are two parts to the object -- the query and the operation. 
The query identifies target nodes against which the operation is run. 
The operation specifies what modifications to perform.
#^
# class Modify
# end

((<BDB::XML::Results|URL:docs/results.html>))
#^

The results of a query are a collection of values. The values could
be either String, Float, true, false, BDB::XML::Documents or BDB::XML::Nodes

#^

Implement only the method ((|each|))
#
# class Results
# end
# end
# end

=end