OpenLayers. Filter. Logical

This class represents ogc:And, ogc:Or and ogc:Not rules.

Inherits from

Summary
OpenLayers. Filter. LogicalThis class represents ogc:And, ogc:Or and ogc:Not rules.
Properties
filters{Array(OpenLayers.Filter)} Child filters for this filter.
type
Constructor
OpenLayers. Filter. LogicalCreates a logical filter (And, Or, Not).
Functions
destroyRemove reference to child filters.
evaluateEvaluates this filter in a specific context.
cloneClones this filter.

Properties

filters

{Array(OpenLayers.Filter)} Child filters for this filter.

type

{String} type of logical operator.  Available types are

  • OpenLayers.Filter.Logical.AND = “&&”;
  • OpenLayers.Filter.Logical.OR = “||”;
  • OpenLayers.Filter.Logical.NOT = “!”;

Constructor

OpenLayers. Filter. Logical

Creates a logical filter (And, Or, Not).

Parameters

options{Object} An optional object with properties to set on the filter.

Returns

{OpenLayers.Filter.Logical}

Functions

destroy

destroy: function()

Remove reference to child filters.

evaluate

evaluate: function(context)

Evaluates this filter in a specific context.  Should be implemented by subclasses.

Parameters

context{Object} Context to use in evaluating the filter.

Returns

{Boolean} The filter applies.

clone

clone: function()

Clones this filter.

Returns

{OpenLayers.Filter.Logical} Clone of this filter.

This class represents an OGC Filter.
destroy: function()
Remove reference to child filters.
evaluate: function(context)
Evaluates this filter in a specific context.
clone: function()
Clones this filter.
Creates a logical filter (And, Or, Not).
Close