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

Method buildChildren

stix/bindings/ttp.py:775–780  ·  view source on GitHub ↗
(self, child_, node, nodeName_, fromsubclass_=False)

Source from the content-addressed store, hash-verified

773 def buildAttributes(self, node, attrs, already_processed):
774 pass
775 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):
776 if nodeName_ == 'Malware_Instance':
777 from .extensions.malware import maec_4_1
778 obj_ = lookup_extension(child_, MalwareInstanceType).factory()
779 obj_.build(child_)
780 self.Malware_Instance.append(obj_)
781# end class MalwareType
782
783class AttackPatternsType(GeneratedsSuper):

Callers 1

buildMethod · 0.95

Calls 3

lookup_extensionFunction · 0.90
factoryMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected