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

Method buildChildren

stix/bindings/report.py:286–295  ·  view source on GitHub ↗
(self, child_, node, nodeName_, fromsubclass_=False)

Source from the content-addressed store, hash-verified

284 def buildAttributes(self, node, attrs, already_processed):
285 pass
286 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):
287 if nodeName_ == 'TTP':
288 from . import ttp
289 obj_ = lookup_extension(child_, common_binding.TTPBaseType).factory()
290 obj_.build(child_)
291 self.TTP.append(obj_)
292 elif nodeName_ == 'Kill_Chains':
293 obj_ = common_binding.KillChainsType.factory()
294 obj_.build(child_)
295 self.set_Kill_Chains(obj_)
296# end class TTPsType
297
298class IncidentsType(GeneratedsSuper):

Callers 3

buildMethod · 0.95
buildChildrenMethod · 0.45
buildChildrenMethod · 0.45

Calls 4

set_Kill_ChainsMethod · 0.95
lookup_extensionFunction · 0.90
factoryMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected