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

Method buildChildren

stix/bindings/report.py:126–150  ·  view source on GitHub ↗
(self, child_, node, nodeName_, fromsubclass_=False)

Source from the content-addressed store, hash-verified

124 def buildAttributes(self, node, attrs, already_processed):
125 pass
126 def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):
127 if nodeName_ == 'Title':
128 Title_ = child_.text
129 Title_ = self.gds_validate_string(Title_, node, 'Title')
130 self.Title = Title_
131 elif nodeName_ == 'Intent':
132 obj_ = common_binding.ControlledVocabularyStringType.factory()
133 obj_.build(child_)
134 self.Intent.append(obj_)
135 elif nodeName_ == 'Description':
136 obj_ = common_binding.StructuredTextType.factory()
137 obj_.build(child_)
138 self.Description.append(obj_)
139 elif nodeName_ == 'Short_Description':
140 obj_ = common_binding.StructuredTextType.factory()
141 obj_.build(child_)
142 self.Short_Description.append(obj_)
143 elif nodeName_ == 'Handling':
144 obj_ = data_marking_binding.MarkingType.factory()
145 obj_.build(child_)
146 self.set_Handling(obj_)
147 elif nodeName_ == 'Information_Source':
148 obj_ = common_binding.InformationSourceType.factory()
149 obj_.build(child_)
150 self.set_Information_Source(obj_)
151# end class HeaderType
152
153

Callers 1

buildMethod · 0.95

Calls 4

set_HandlingMethod · 0.95
factoryMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected