

def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):
    if (nodeName_ == 'QName'):
        obj_ = uri_object.URIObjectType.factory()
        obj_.build(child_)
        self.set_QName(obj_)
    elif (nodeName_ == 'QType'):
        obj_ = DNSRecordType.factory()
        obj_.build(child_)
        self.set_QType(obj_)
    elif (nodeName_ == 'QClass'):
        obj_ = cybox_common.StringObjectPropertyType.factory()
        obj_.build(child_)
        self.set_QClass(obj_)

dataset/ETHPy150Open CybOXProject/python-cybox/cybox/bindings/dns_query_object.py DNSQuestionType.buildChildren/original