Javascript MatchingItem
From Yate Documentation
(Difference between revisions)
(Created page with "== General == Object implementing complex matching.<br/> May be set as filter in Message handler and post hook install (match one or more message param...") |
|||
Line 6: | Line 6: | ||
== Constructor == | == Constructor == | ||
+ | |||
+ | * '''new Engine.MatchingItem(value[,name[,params])''' | ||
+ | Build a new MatchingItem object.<br/> | ||
+ | Parameters:<br/> | ||
+ | '''value''': <br/> | ||
+ | '''name''': <br/> | ||
+ | '''params''': <br/> | ||
+ | |||
+ | |||
== Static methods == | == Static methods == | ||
+ | |||
+ | * '''validate(value[,name[,params]])''' | ||
+ | Parameters:<br/> | ||
+ | '''value''': <br/> | ||
+ | '''name''': <br/> | ||
+ | '''params''': <br/> | ||
+ | Return:<br/> | ||
+ | Success: Object with matching properties<br/> | ||
+ | Success with empty optimized matching: null/undefined<br/> | ||
+ | Error: string describing the error<br/> | ||
== Methods == | == Methods == | ||
+ | |||
+ | * '''matches(value)''' | ||
+ | |||
+ | |||
+ | * '''getDesc([params])''' | ||
+ | |||
+ | |||
+ | * '''dump([params[,indent,origIndent]])''' |
Revision as of 16:03, 3 September 2024
Contents |
General
Object implementing complex matching.
May be set as filter in Message handler and post hook install (match one or more message parameter(s)).
May be used for matching individual values
Constructor
- new Engine.MatchingItem(value[,name[,params])
Build a new MatchingItem object.
Parameters:
value:
name:
params:
Static methods
- validate(value[,name[,params]])
Parameters:
value:
name:
params:
Return:
Success: Object with matching properties
Success with empty optimized matching: null/undefined
Error: string describing the error
Methods
- matches(value)
- getDesc([params])
- dump([params[,indent,origIndent]])