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

Method build

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

Source from the content-addressed store, hash-verified

235 if self.Structured_Description is not None:
236 self.Structured_Description.export(lwrite, level, "%s:" % (nsmap[namespace_]), name_='Structured_Description', pretty_print=pretty_print)
237 def build(self, node):
238 self.__sourcenode__ = node
239 already_processed = set()
240 self.buildAttributes(node, node.attrib, already_processed)
241 for child in node:
242 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
243 self.buildChildren(child, node, nodeName_)
244 def buildAttributes(self, node, attrs, already_processed):
245 pass
246 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):

Callers

nothing calls this directly

Calls 2

buildAttributesMethod · 0.95
buildChildrenMethod · 0.95

Tested by

no test coverage detected