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

Method buildAttributes

stix/bindings/report.py:696–701  ·  view source on GitHub ↗
(self, node, attrs, already_processed)

Source from the content-addressed store, hash-verified

694 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
695 self.buildChildren(child, node, nodeName_)
696 def buildAttributes(self, node, attrs, already_processed):
697 value = find_attr_value_('version', node)
698 if value is not None and 'version' not in already_processed:
699 already_processed.add('version')
700 self.version = value
701 super(ReportType, self).buildAttributes(node, attrs, already_processed)
702 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):
703 if nodeName_ == 'Header':
704 obj_ = HeaderType.factory()

Callers 1

buildMethod · 0.95

Calls 2

addMethod · 0.45
buildAttributesMethod · 0.45

Tested by

no test coverage detected