This class represents a comparison filter.
Inherits from
OpenLayers. | This class represents a comparison filter. |
Properties | |
type | {String} type: type of the comparison. |
property | {String} name of the context property to compare |
value | {Number} or {String} comparison value for binary comparisons. |
lowerBoundary | {Number} or {String} lower boundary for between comparisons. |
upperBoundary | {Number} or {String} upper boundary for between comparisons. |
Constructor | |
OpenLayers. | Creates a comparison rule. |
Functions | |
evaluate | Evaluates this filter in a specific context. |
value2regex | Converts the value of this rule into a regular expression string, according to the wildcard characters specified. |
clone | Clones this filter. |
{String} type: type of the comparison. This is one of
value2regex: function( wildCard, singleChar, escapeChar )
Converts the value of this rule into a regular expression string, according to the wildcard characters specified. This method has to be called after instantiation of this class, if the value is not a regular expression already.
wildCard | {<Char>} wildcard character in the above value, default is “*” |
singleChar | {<Char>) single-character wildcard in the above value default is “.” |
escape | {<Char>) escape character in the above value, default is “!” |
{String} regular expression string
Evaluates this filter in a specific context.
evaluate: function( context )
Converts the value of this rule into a regular expression string, according to the wildcard characters specified.
value2regex: function( wildCard, singleChar, escapeChar )
Clones this filter.
clone: function()