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

Method buildAttributes

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

Source from the content-addressed store, hash-verified

727 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
728 self.buildChildren(child, node, nodeName_)
729 def buildAttributes(self, node, attrs, already_processed):
730 value = find_attr_value_('priority', node)
731 if value is not None and 'priority' not in already_processed:
732 already_processed.add('priority')
733 self.priority = value
734 super(COARequestedType, self).buildAttributes(node, attrs, already_processed)
735 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):
736 super(COARequestedType, self).buildChildren(child_, node, nodeName_, True)
737 pass

Callers 1

buildMethod · 0.95

Calls 2

addMethod · 0.45
buildAttributesMethod · 0.45

Tested by

no test coverage detected