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

Method build

stix/bindings/incident.py:722–728  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

720 def exportChildren(self, lwrite, level, nsmap, namespace_=XML_NS, name_='COARequestedType', fromsubclass_=False, pretty_print=True):
721 super(COARequestedType, self).exportChildren(lwrite, level, nsmap, namespace_, name_, True, pretty_print=pretty_print)
722 def build(self, node):
723 self.__sourcenode__ = node
724 already_processed = set()
725 self.buildAttributes(node, node.attrib, already_processed)
726 for child in node:
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:

Callers

nothing calls this directly

Calls 2

buildAttributesMethod · 0.95
buildChildrenMethod · 0.95

Tested by

no test coverage detected