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

Method build

stix/bindings/report.py:689–695  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

687 if self.Related_Reports is not None:
688 self.Related_Reports.export(lwrite, level, nsmap, namespace_, name_='Related_Reports', pretty_print=pretty_print)
689 def build(self, node):
690 self.__sourcenode__ = node
691 already_processed = set()
692 self.buildAttributes(node, node.attrib, already_processed)
693 for child in node:
694 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
695 self.buildChildren(child, node, nodeName_)
696 def buildAttributes(self, node, attrs, already_processed):
697 value = find_attr_value_('version', node)
698 if value is not None and 'version' not in already_processed:

Callers

nothing calls this directly

Calls 2

buildAttributesMethod · 0.95
buildChildrenMethod · 0.95

Tested by

no test coverage detected