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

Method buildChildren

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

Source from the content-addressed store, hash-verified

489 def buildAttributes(self, node, attrs, already_processed):
490 pass
491 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):
492 if nodeName_ == 'Campaign':
493 from . import campaign
494 obj_ = lookup_extension(child_, common_binding.CampaignBaseType).factory()
495 obj_.build(child_)
496 self.Campaign.append(obj_)
497# end class CampaignsType
498
499class ThreatActorsType(GeneratedsSuper):

Callers 1

buildMethod · 0.95

Calls 3

lookup_extensionFunction · 0.90
factoryMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected