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

Method buildChildren

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

Source from the content-addressed store, hash-verified

1160 def buildAttributes(self, node, attrs, already_processed):
1161 pass
1162 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):
1163 if nodeName_ == 'Identity':
1164 from .extensions.identity import ciq_identity_3_0
1165 obj_ = lookup_extension(child_, stix_common_binding.IdentityType).factory()
1166 obj_.build(child_)
1167 self.set_Identity(obj_)
1168 elif nodeName_ == 'Targeted_Systems':
1169 obj_ = stix_common_binding.ControlledVocabularyStringType.factory()
1170 obj_.build(child_)
1171 self.Targeted_Systems.append(obj_)
1172 elif nodeName_ == 'Targeted_Information':
1173 obj_ = stix_common_binding.ControlledVocabularyStringType.factory()
1174 obj_.build(child_)
1175 self.Targeted_Information.append(obj_)
1176 elif nodeName_ == 'Targeted_Technical_Details':
1177 obj_ = cybox_core_binding.ObservablesType.factory()
1178 obj_.build(child_)
1179 self.set_Targeted_Technical_Details(obj_)
1180# end class VictimTargetingType
1181
1182class RelatedTTPsType(stix_common_binding.GenericRelationshipListType):

Callers 1

buildMethod · 0.95

Calls 5

set_IdentityMethod · 0.95
lookup_extensionFunction · 0.90
factoryMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected