def METHOD_NAME(cls, value, parameter):
    par_type = parameter.parameter_type
    if par_type == "" or par_type == "boolean":
        return True
    validate_function = getattr(cls, "validate_{}".format(par_type))
    return validate_function(value, parameter.allowed_values)