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
|
# 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 BDB::XML::Document
#Return the value of an attribute
#
def [](attr)
end
#Set the value of an attribute
#
def []=(attr, val)
end
#Return the content of the document
#
def content
end
#Set the content of the document
#
def content=(val)
end
#Return the value of an attribute. <em>uri</em> specify the namespace
#where reside the attribute.
#
#the optional <em>class</em> argument give the type (String, Numeric, ...)
#
def get(uri = "", attr [, class])
end
#Return the ID
#
def id
end
#Initialize the document with the content specified
#
def initialize(content = "")
end
#Modifies the document contents based on the information contained in the
#<em>BDB::XML::Modify</em> object
#
def modify(mod)
end
#Return the name of the document
#
def name
end
#Set the name of the document
#
def name=(val)
end
#Return the default prefix for the namespace
#
def prefix
end
#Set the default prefix used by <em>set</em>
#
def prefix=(val)
end
#Execute the XPath expression <em>xpath</em> against the document
#Return an <em>BDB::XML::Results</em>
#
def query(xpath, context = nil)
end
#Set an attribute in the namespace <em>uri</em>. <em>prefix</em> is the prefix
#for the namespace
#
def set(uri = "", prefix = "", attr, value)
end
#Return the document as a String object
#
def to_s
end
#same than <em> to_s</em>
def to_str
end
#Return the default namespace
#
def uri
end
#Set the default namespace used by <em>set</em> and <em>get</em>
#
def uri=(val)
end
end
|