Module: Saxon::XDM
- Defined in:
- lib/saxon/xdm.rb,
lib/saxon/xdm/map.rb,
lib/saxon/xdm/item.rb,
lib/saxon/xdm/node.rb,
lib/saxon/xdm/array.rb,
lib/saxon/xdm/value.rb,
lib/saxon/xdm/atomic_value.rb,
lib/saxon/xdm/function_item.rb,
lib/saxon/xdm/sequence_like.rb,
lib/saxon/xdm/empty_sequence.rb,
lib/saxon/xdm/external_object.rb
Defined Under Namespace
Modules: ItemSequenceLike, SequenceLike
Classes: Array, AtomicValue, EmptySequence, ExternalObject, FunctionItem, Map, Node, UnhandledItem, Value
Class Method Summary
collapse
Class Method Details
.Array(*args) ⇒ Object
26
27
28
|
# File 'lib/saxon/xdm.rb', line 26
def Array(*args)
XDM::Array.create(*args)
end
|
.AtomicValue(*args) ⇒ Object
14
15
16
|
# File 'lib/saxon/xdm.rb', line 14
def AtomicValue(*args)
XDM::AtomicValue.create(*args)
end
|
.EmptySequence ⇒ Object
22
23
24
|
# File 'lib/saxon/xdm.rb', line 22
def EmptySequence()
XDM::EmptySequence.create
end
|
.Item(item) ⇒ Object
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
|
# File 'lib/saxon/xdm/item.rb', line 3
def self.Item(item)
case item
when Value, AtomicValue, Node, Array, Map, ExternalObject
item
when Saxon::S9API::XdmNode
Node.new(item)
when Saxon::S9API::XdmAtomicValue
AtomicValue.new(item)
when Saxon::S9API::XdmExternalObject
ExternalObject.new(item)
when Saxon::S9API::XdmArray
Array.new(item)
when Saxon::S9API::XdmMap
Map.new(item)
when Saxon::S9API::XdmValue
Value.new(item)
when ::Array
Array.create(item)
when ::Hash
Map.create(item)
else
if item.respond_to?(:each)
Array.create(item)
else
AtomicValue.create(item)
end
end
end
|
.Map(*args) ⇒ Object
30
31
32
|
# File 'lib/saxon/xdm.rb', line 30
def Map(*args)
XDM::Map.create(*args)
end
|
.Value(*args) ⇒ Object
18
19
20
|
# File 'lib/saxon/xdm.rb', line 18
def Value(*args)
XDM::Value.create(*args)
end
|