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

Method buildChildren

stix/bindings/incident.py:1175–1187  ·  view source on GitHub ↗
(self, child_, node, nodeName_, fromsubclass_=False)

Source from the content-addressed store, hash-verified

1173 def buildAttributes(self, node, attrs, already_processed):
1174 pass
1175 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):
1176 if nodeName_ == 'Asset_Losses':
1177 obj_ = stix_common_binding.ControlledVocabularyStringType.factory()
1178 obj_.build(child_)
1179 self.set_Asset_Losses(obj_)
1180 elif nodeName_ == 'Business-Mission_Disruption':
1181 obj_ = stix_common_binding.ControlledVocabularyStringType.factory()
1182 obj_.build(child_)
1183 self.set_Business_Mission_Disruption(obj_)
1184 elif nodeName_ == 'Response_And_Recovery_Costs':
1185 obj_ = stix_common_binding.ControlledVocabularyStringType.factory()
1186 obj_.build(child_)
1187 self.set_Response_And_Recovery_Costs(obj_)
1188# end class DirectImpactSummaryType
1189
1190class NatureOfSecurityEffectType(GeneratedsSuper):

Callers 1

buildMethod · 0.95

Calls 5

set_Asset_LossesMethod · 0.95
factoryMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected