1 /* Copyright (c) 2006 MetaCarta, Inc., published under a modified BSD license.
2 * See http://svn.openlayers.org/trunk/openlayers/repository-license.txt
3 * for the full text of the license. */
7 * @requires OpenLayers/Util.js
8 * @requires OpenLayers/Style.js
12 * Class: OpenLayers.Filter
13 * This class represents an OGC Filter.
15 OpenLayers.Filter = OpenLayers.Class({
18 * Constructor: OpenLayers.Filter
19 * This is an abstract class. Create an instance of a filter subclass.
22 * options - {Object} Optional object whose properties will be set on the
26 * {<OpenLayers.Filter>}
28 initialize: function(options) {
29 OpenLayers.Util.extend(this, options);
34 * Remove reference to anything added.
41 * Evaluates this filter in a specific context. Should be implemented by
45 * context - {Object} Context to use in evaluating the filter.
48 * {Boolean} The filter applies.
50 evaluate: function(context) {
56 * Clones this filter. Should be implementted by subclasses.
59 * {<OpenLayers.Filter>} Clone of this filter.
65 CLASS_NAME: "OpenLayers.Filter"