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

Method buildChildren

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

Source from the content-addressed store, hash-verified

2008 def buildAttributes(self, node, attrs, already_processed):
2009 super(LeveragedTTPsType, self).buildAttributes(node, attrs, already_processed)
2010 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):
2011 if nodeName_ == 'Leveraged_TTP':
2012 obj_ = stix_common_binding.RelatedTTPType.factory()
2013 obj_.build(child_)
2014 self.Leveraged_TTP.append(obj_)
2015 super(LeveragedTTPsType, self).buildChildren(child_, node, nodeName_, True)
2016# end class LeveragedTTPsType
2017
2018class RelatedIncidentsType(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