

def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):
    if (nodeName_ == 'Transaction_ID'):
        obj_ = cybox_common.HexBinaryObjectPropertyType.factory()
        obj_.build(child_)
        self.set_Transaction_ID(obj_)
    elif (nodeName_ == 'Question'):
        obj_ = DNSQuestionType.factory()
        obj_.build(child_)
        self.set_Question(obj_)
    elif (nodeName_ == 'Answer_Resource_Records'):
        obj_ = DNSResourceRecordsType.factory()
        obj_.build(child_)
        self.set_Answer_Resource_Records(obj_)
    elif (nodeName_ == 'Authority_Resource_Records'):
        obj_ = DNSResourceRecordsType.factory()
        obj_.build(child_)
        self.set_Authority_Resource_Records(obj_)
    elif (nodeName_ == 'Additional_Records'):
        obj_ = DNSResourceRecordsType.factory()
        obj_.build(child_)
        self.set_Additional_Records(obj_)
    elif (nodeName_ == 'Date_Ran'):
        obj_ = cybox_common.DateTimeObjectPropertyType.factory()
        obj_.build(child_)
        self.set_Date_Ran(obj_)
    elif (nodeName_ == 'Service_Used'):
        obj_ = cybox_common.StringObjectPropertyType.factory()
        obj_.build(child_)
        self.set_Service_Used(obj_)
    super(DNSQueryObjectType, self).buildChildren(child_, node, nodeName_, True)

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