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

Method buildAttributes

stix/bindings/ttp.py:1425–1430  ·  view source on GitHub ↗
(self, node, attrs, already_processed)

Source from the content-addressed store, hash-verified

1423 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
1424 self.buildChildren(child, node, nodeName_)
1425 def buildAttributes(self, node, attrs, already_processed):
1426 value = find_attr_value_('version', node)
1427 if value is not None and 'version' not in already_processed:
1428 already_processed.add('version')
1429 self.version = value
1430 super(TTPType, self).buildAttributes(node, attrs, already_processed)
1431 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):
1432 if nodeName_ == 'Title':
1433 Title_ = child_.text

Callers 3

buildMethod · 0.95
buildAttributesMethod · 0.45
buildAttributesMethod · 0.45

Calls 1

addMethod · 0.45

Tested by

no test coverage detected