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

Method build

stix/bindings/ttp.py:544–550  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

542 if self.Observable_Characterization is not None:
543 self.Observable_Characterization.export(lwrite, level, "%s:" % (nsmap[namespace_]), name_='Observable_Characterization', pretty_print=pretty_print)
544 def build(self, node):
545 self.__sourcenode__ = node
546 already_processed = set()
547 self.buildAttributes(node, node.attrib, already_processed)
548 for child in node:
549 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
550 self.buildChildren(child, node, nodeName_)
551 def buildAttributes(self, node, attrs, already_processed):
552 value = find_attr_value_('idref', node)
553 if value is not None and 'idref' not in already_processed:

Callers

nothing calls this directly

Calls 2

buildAttributesMethod · 0.95
buildChildrenMethod · 0.95

Tested by

no test coverage detected