'Return true if the question is answered by the record.'

def answeredBy(self, rec):

    return ((self.clazz == rec.clazz) and ((self.type == rec.type) or (self.type == _TYPE_ANY)) and (self.name == rec.name))
