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

Method buildChildren

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

Source from the content-addressed store, hash-verified

1062 def buildAttributes(self, node, attrs, already_processed):
1063 pass
1064 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):
1065 if nodeName_ == 'Attack_Patterns':
1066 obj_ = AttackPatternsType.factory()
1067 obj_.build(child_)
1068 self.set_Attack_Patterns(obj_)
1069 elif nodeName_ == 'Malware':
1070 obj_ = MalwareType.factory()
1071 obj_.build(child_)
1072 self.set_Malware(obj_)
1073 elif nodeName_ == 'Exploits':
1074 obj_ = ExploitsType.factory()
1075 obj_.build(child_)
1076 self.set_Exploits(obj_)
1077# end class BehaviorType
1078
1079class VictimTargetingType(GeneratedsSuper):

Callers 1

buildMethod · 0.95

Calls 5

set_Attack_PatternsMethod · 0.95
set_MalwareMethod · 0.95
set_ExploitsMethod · 0.95
factoryMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected