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

Method build

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

Source from the content-addressed store, hash-verified

2069 for Related_Incident_ in self.Related_Incident:
2070 Related_Incident_.export(lwrite, level, nsmap, namespace_, name_='Related_Incident', pretty_print=pretty_print)
2071 def build(self, node):
2072 self.__sourcenode__ = node
2073 already_processed = set()
2074 self.buildAttributes(node, node.attrib, already_processed)
2075 for child in node:
2076 nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
2077 self.buildChildren(child, node, nodeName_)
2078 def buildAttributes(self, node, attrs, already_processed):
2079 super(RelatedIncidentsType, self).buildAttributes(node, attrs, already_processed)
2080 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):

Callers

nothing calls this directly

Calls 2

buildAttributesMethod · 0.95
buildChildrenMethod · 0.95

Tested by

no test coverage detected