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

Method buildChildren

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

Source from the content-addressed store, hash-verified

840 def buildAttributes(self, node, attrs, already_processed):
841 pass
842 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):
843 if nodeName_ == 'Attack_Pattern':
844 from .extensions.attack_pattern import capec_2_7
845 obj_ = lookup_extension(child_, AttackPatternType).factory()
846 obj_.build(child_)
847 self.Attack_Pattern.append(obj_)
848# end class AttackPatternsType
849
850class ResourceType(GeneratedsSuper):

Callers 1

buildMethod · 0.95

Calls 3

lookup_extensionFunction · 0.90
factoryMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected