code: def Validate(self):
      
      if self.type not in filters.Filter.classes:
        raise DefinitionError("Undefined filter type %s" % self.type)
      self._filter.Validate(self.expression)
      Validate(self.hint, "Filter has invalid hint")
docs: The filter exists, and has valid filter and hint expressions.