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

Method buildAttributes

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

Source from the content-addressed store, hash-verified

2475 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
2476 self.buildChildren(child, node, nodeName_)
2477 def buildAttributes(self, node, attrs, already_processed):
2478 value = find_attr_value_('URL', node)
2479 if value is not None and 'URL' not in already_processed:
2480 already_processed.add('URL')
2481 self.URL = value
2482 value = find_attr_value_('version', node)
2483 if value is not None and 'version' not in already_processed:
2484 already_processed.add('version')
2485 self.version = value
2486 super(IncidentType, self).buildAttributes(node, attrs, already_processed)
2487 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):
2488 if nodeName_ == 'Title':
2489 Title_ = child_.text

Callers 1

buildMethod · 0.95

Calls 2

addMethod · 0.45
buildAttributesMethod · 0.45

Tested by

no test coverage detected