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

Method buildChildren

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

Source from the content-addressed store, hash-verified

914 def buildAttributes(self, node, attrs, already_processed):
915 pass
916 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):
917 if nodeName_ == 'Tools':
918 obj_ = ToolsType.factory()
919 obj_.build(child_)
920 self.set_Tools(obj_)
921 elif nodeName_ == 'Infrastructure':
922 obj_ = InfrastructureType.factory()
923 obj_.build(child_)
924 self.set_Infrastructure(obj_)
925 elif nodeName_ == 'Personas':
926 obj_ = PersonasType.factory()
927 obj_.build(child_)
928 self.set_Personas(obj_)
929# end class ResourceType
930
931class PersonasType(GeneratedsSuper):

Callers 1

buildMethod · 0.95

Calls 5

set_ToolsMethod · 0.95
set_InfrastructureMethod · 0.95
set_PersonasMethod · 0.95
factoryMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected