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

Method buildChildren

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

Source from the content-addressed store, hash-verified

1938 def buildAttributes(self, node, attrs, already_processed):
1939 super(RelatedObservablesType, self).buildAttributes(node, attrs, already_processed)
1940 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):
1941 if nodeName_ == 'Related_Observable':
1942 obj_ = stix_common_binding.RelatedObservableType.factory()
1943 obj_.build(child_)
1944 self.Related_Observable.append(obj_)
1945 super(RelatedObservablesType, self).buildChildren(child_, node, nodeName_, True)
1946# end class RelatedObservablesType
1947
1948class LeveragedTTPsType(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