

def buildChildren(self, child_, node, nodeName_, fromsubclass_=False):
    if (nodeName_ == 'HTTP_Session'):
        obj_ = http_session_object.HTTPSessionObjectType.factory()
        obj_.build(child_)
        self.set_HTTP_Session(obj_)
    elif (nodeName_ == 'DNS_Query'):
        obj_ = dns_query_object.DNSQueryObjectType.factory()
        obj_.build(child_)
        self.DNS_Query.append(obj_)

dataset/ETHPy150Open CybOXProject/python-cybox/cybox/bindings/network_connection_object.py Layer7ConnectionsType.buildChildren/original