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

Method build

stix/bindings/incident.py:2148–2155  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

2146 super(AssetTypeType, self).exportChildren(lwrite, level, nsmap, namespace_, name_, True, pretty_print=pretty_print)
2147 pass
2148 def build(self, node):
2149 self.__sourcenode__ = node
2150 already_processed = set()
2151 self.buildAttributes(node, node.attrib, already_processed)
2152 self.valueOf_ = get_all_text_(node)
2153 for child in node:
2154 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
2155 self.buildChildren(child, node, nodeName_)
2156 def buildAttributes(self, node, attrs, already_processed):
2157 value = find_attr_value_('count_affected', node)
2158 if value is not None and 'count_affected' not in already_processed:

Callers

nothing calls this directly

Calls 2

buildAttributesMethod · 0.95
buildChildrenMethod · 0.95

Tested by

no test coverage detected