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

Method buildChildren

stix/bindings/ttp.py:146–158  ·  view source on GitHub ↗
(self, child_, node, nodeName_, fromsubclass_=False)

Source from the content-addressed store, hash-verified

144 already_processed.add('id')
145 self.id = value
146 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):
147 if nodeName_ == 'Title':
148 Title_ = child_.text
149 Title_ = self.gds_validate_string(Title_, node, 'Title')
150 self.Title = Title_
151 elif nodeName_ == 'Description':
152 obj_ = stix_common_binding.StructuredTextType.factory()
153 obj_.build(child_)
154 self.add_Description(obj_)
155 elif nodeName_ == 'Short_Description':
156 obj_ = stix_common_binding.StructuredTextType.factory()
157 obj_.build(child_)
158 self.add_Short_Description(obj_)
159# end class AttackPatternType
160
161

Callers 1

buildMethod · 0.95

Calls 4

add_DescriptionMethod · 0.95
add_Short_DescriptionMethod · 0.95
factoryMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected