Class: XMLScan::XPath::DOM::ElementNodeAdapter
Instance Attribute Summary
#node
Instance Method Summary
collapse
#string_value
#children, #each_following_siblings, #each_preceding_siblings, #index, #lang, #parent, #root
Instance Method Details
#attributes ⇒ Object
162
163
164
165
166
167
168
169
170
171
|
# File 'lib/xml/dom2/xpath.rb', line 162
def attributes
map = @node.attributes
attrs = @visitor.get_attributes(@node)
unless attrs then
attrs = []
map.length.times { |i| attrs.push map.item(i) }
@visitor.regist_attributes @node, attrs
end
attrs
end
|
#name_localpart ⇒ Object
150
151
152
|
# File 'lib/xml/dom2/xpath.rb', line 150
def name_localpart
@node.nodeName
end
|
#namespace_uri ⇒ Object
154
155
156
|
# File 'lib/xml/dom2/xpath.rb', line 154
def namespace_uri
@node.namespaceURI
end
|
#node_type ⇒ Object
146
147
148
|
# File 'lib/xml/dom2/xpath.rb', line 146
def node_type
:element
end
|
#qualified_name ⇒ Object
158
159
160
|
# File 'lib/xml/dom2/xpath.rb', line 158
def qualified_name
@node.nodeName
end
|
#wrap(node, visitor) ⇒ Object
140
141
142
143
144
|
# File 'lib/xml/dom2/xpath.rb', line 140
def wrap(node, visitor)
@node = node
@visitor = visitor
self
end
|