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

Method buildAttributes

stix/bindings/incident.py:2156–2161  ·  view source on GitHub ↗
(self, node, attrs, already_processed)

Source from the content-addressed store, hash-verified

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:
2159 already_processed.add('count_affected')
2160 self.count_affected = value
2161 super(AssetTypeType, self).buildAttributes(node, attrs, already_processed)
2162 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):
2163 pass
2164# end class AssetTypeType

Callers 1

buildMethod · 0.95

Calls 2

addMethod · 0.45
buildAttributesMethod · 0.45

Tested by

no test coverage detected