This class represents a comparison filter.
ALKMaps. | 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. |
matchCase | {Boolean} Force case sensitive searches for EQUAL_TO and NOT_EQUAL_TO comparisons. |
lowerBoundary | {Number} or {String} lower boundary for between comparisons. |
upperBoundary | {Number} or {String} upper boundary for between comparisons. |
Constructor | |
ALKMaps. | 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. |
regex2value | Convert the value of this rule from a regular expression string into an ogc literal string using a wildCard of *, a singleChar of ., and an escape of !. |
clone | Clones this filter. |
{String} type: type of the comparison. This is one of
{Boolean} Force case sensitive searches for EQUAL_TO and NOT_EQUAL_TO comparisons. The Filter Encoding 1.1 specification added a matchCase attribute to ogc:PropertyIsEqualTo and ogc:PropertyIsNotEqualTo elements. This property will be serialized with those elements only if using the v1.1.0 filter format. However, when evaluating filters here, the matchCase property will always be respected (for EQUAL_TO and NOT_EQUAL_TO). Default is true.
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 “.” |
escapeChar | {Char} escape character in the above value, default is “!” |
{String} regular expression string
regex2value: function()
Convert the value of this rule from a regular expression string into an ogc literal string using a wildCard of *, a singleChar of ., and an escape of !. Leaves the value property unmodified.
{String} A string value.
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 )
Convert the value of this rule from a regular expression string into an ogc literal string using a wildCard of *, a singleChar of ., and an escape of !.
regex2value: function()
Clones this filter.
clone: function()