Filter.validate
Validates a Filter Definition to make sure every component is valid.
Validates a Filter Definition to make sure every component is valid.
Also checks that def.constructor is callable when present, unless onComponent is provided.
Filter.validate( errorLevel, name, def, onComponent )Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
errorLevel |
integer | Extra stack level added to error reports |
name |
string | Name for the Filter. If omitted, errors refer to a World:query filter. |
def |
FilterDefinition | Table containing the Filter Definition |
onComponent |
fun(component: string, reject: string|false) | Called with (component, reject) when a component is valid. reject is the stripped Component name when the entry had the Reject Prefix, otherwise false. |