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

Method buildChildren

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

Source from the content-addressed store, hash-verified

424 already_processed.add('id')
425 self.id = value
426 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):
427 if nodeName_ == 'Title':
428 Title_ = child_.text
429 Title_ = self.gds_validate_string(Title_, node, 'Title')
430 self.Title = Title_
431 elif nodeName_ == 'Description':
432 obj_ = stix_common_binding.StructuredTextType.factory()
433 obj_.build(child_)
434 self.add_Description(obj_)
435 elif nodeName_ == 'Short_Description':
436 obj_ = stix_common_binding.StructuredTextType.factory()
437 obj_.build(child_)
438 self.add_Short_Description(obj_)
439# end class ExploitType
440
441

Callers 1

buildMethod · 0.95

Calls 4

add_DescriptionMethod · 0.95
add_Short_DescriptionMethod · 0.95
factoryMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected