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

Method buildAttributes

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

Source from the content-addressed store, hash-verified

549 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
550 self.buildChildren(child, node, nodeName_)
551 def buildAttributes(self, node, attrs, already_processed):
552 value = find_attr_value_('idref', node)
553 if value is not None and 'idref' not in already_processed:
554 already_processed.add('idref')
555 self.idref = value
556 value = find_attr_value_('id', node)
557 if value is not None and 'id' not in already_processed:
558 already_processed.add('id')
559 self.id = value
560 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):
561 if nodeName_ == 'Title':
562 Title_ = child_.text

Callers 1

buildMethod · 0.95

Calls 1

addMethod · 0.45

Tested by

no test coverage detected