MCPcopy Index your code
hub / github.com/STIXProject/python-stix / exportAttributes

Method exportAttributes

stix/bindings/incident.py:2140–2144  ·  view source on GitHub ↗
(self, lwrite, level, already_processed, namespace_='incident:', name_='AssetTypeType')

Source from the content-addressed store, hash-verified

2138 else:
2139 lwrite('/>%s' % (eol_, ))
2140 def exportAttributes(self, lwrite, level, already_processed, namespace_='incident:', name_='AssetTypeType'):
2141 super(AssetTypeType, self).exportAttributes(lwrite, level, already_processed, namespace_, name_='AssetTypeType')
2142 if self.count_affected is not None and 'count_affected' not in already_processed:
2143 already_processed.add('count_affected')
2144 lwrite(' count_affected=%s' % (quote_attrib(self.count_affected), ))
2145 def exportChildren(self, lwrite, level, nsmap, namespace_=XML_NS, name_='AssetTypeType', fromsubclass_=False, pretty_print=True):
2146 super(AssetTypeType, self).exportChildren(lwrite, level, nsmap, namespace_, name_, True, pretty_print=pretty_print)
2147 pass

Callers 1

exportMethod · 0.95

Calls 2

exportAttributesMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected