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

Method buildChildren

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

Source from the content-addressed store, hash-verified

1868 def buildAttributes(self, node, attrs, already_processed):
1869 super(RelatedIndicatorsType, self).buildAttributes(node, attrs, already_processed)
1870 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):
1871 if nodeName_ == 'Related_Indicator':
1872 obj_ = stix_common_binding.RelatedIndicatorType.factory()
1873 obj_.build(child_)
1874 self.Related_Indicator.append(obj_)
1875 super(RelatedIndicatorsType, self).buildChildren(child_, node, nodeName_, True)
1876# end class RelatedIndicatorsType
1877
1878class RelatedObservablesType(stix_common_binding.GenericRelationshipListType):

Callers 1

buildMethod · 0.95

Calls 3

factoryMethod · 0.45
buildMethod · 0.45
buildChildrenMethod · 0.45

Tested by

no test coverage detected