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

Method exportChildren

stix/bindings/incident.py:989–997  ·  view source on GitHub ↗
(self, lwrite, level, nsmap, namespace_=XML_NS, name_='TotalLossEstimationType', fromsubclass_=False, pretty_print=True)

Source from the content-addressed store, hash-verified

987 def exportAttributes(self, lwrite, level, already_processed, namespace_='incident:', name_='TotalLossEstimationType'):
988 pass
989 def exportChildren(self, lwrite, level, nsmap, namespace_=XML_NS, name_='TotalLossEstimationType', fromsubclass_=False, pretty_print=True):
990 if pretty_print:
991 eol_ = '\n'
992 else:
993 eol_ = ''
994 if self.Initial_Reported_Total_Loss_Estimation is not None:
995 self.Initial_Reported_Total_Loss_Estimation.export(lwrite, level, nsmap, namespace_, name_='Initial_Reported_Total_Loss_Estimation', pretty_print=pretty_print)
996 if self.Actual_Total_Loss_Estimation is not None:
997 self.Actual_Total_Loss_Estimation.export(lwrite, level, nsmap, namespace_, name_='Actual_Total_Loss_Estimation', pretty_print=pretty_print)
998 def build(self, node):
999 self.__sourcenode__ = node
1000 already_processed = set()

Callers 1

exportMethod · 0.95

Calls 1

exportMethod · 0.45

Tested by

no test coverage detected