MCPcopy Create free account
hub / github.com/FreeOpcUa/python-opcua / _node_to_string

Method _node_to_string

opcua/common/xmlexporter.py:183–190  ·  view source on GitHub ↗
(self, nodeid)

Source from the content-addressed store, hash-verified

181 return child_el
182
183 def _node_to_string(self, nodeid):
184 if not isinstance(nodeid, ua.NodeId):
185 nodeid = nodeid.nodeid
186
187 if nodeid.NamespaceIndex in self._addr_idx_to_xml_idx:
188 nodeid = copy(nodeid)
189 nodeid.NamespaceIndex = self._addr_idx_to_xml_idx[nodeid.NamespaceIndex]
190 return nodeid.to_string()
191
192 def _bname_to_string(self, bname):
193 if bname.NamespaceIndex in self._addr_idx_to_xml_idx:

Callers 4

_add_node_commonMethod · 0.95
add_variable_commonMethod · 0.95
_add_alias_elsMethod · 0.95
_add_ref_elsMethod · 0.95

Calls 1

to_stringMethod · 0.45

Tested by

no test coverage detected