MCPcopy Create free account
hub / github.com/STIXProject/python-stix / build

Method build

stix/bindings/incident.py:2470–2476  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

2468 if self.Related_Packages is not None:
2469 self.Related_Packages.export(lwrite, level, nsmap, namespace_, name_='Related_Packages', pretty_print=pretty_print)
2470 def build(self, node):
2471 self.__sourcenode__ = node
2472 already_processed = set()
2473 self.buildAttributes(node, node.attrib, already_processed)
2474 for child in node:
2475 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
2476 self.buildChildren(child, node, nodeName_)
2477 def buildAttributes(self, node, attrs, already_processed):
2478 value = find_attr_value_('URL', node)
2479 if value is not None and 'URL' not in already_processed:

Callers

nothing calls this directly

Calls 2

buildAttributesMethod · 0.95
buildChildrenMethod · 0.95

Tested by

no test coverage detected