01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2002-2006, GeoTools Project Managment Committee (PMC)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation;
09: * version 2.1 of the License.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: */
16: package org.geotools.filter;
17:
18: import java.util.List;
19:
20: import org.opengis.filter.BinaryLogicOperator;
21:
22: /**
23: * @author jdeolive
24: */
25: public abstract class BinaryLogicAbstract extends AbstractFilter
26: implements BinaryLogicOperator {
27: protected List/*<Filter>*/children;
28:
29: protected BinaryLogicAbstract(FilterFactory factory,
30: List/*<Filter>*/children) {
31: super (factory);
32: this .children = children;
33: }
34:
35: public List/*<Filter>*/getChildren() {
36: return children;
37: }
38:
39: public void setChildren(List children) {
40: this .children = children;
41: }
42:
43: public Filter and(org.opengis.filter.Filter filter) {
44: return (Filter) factory.and(this , filter);
45: }
46:
47: public Filter or(org.opengis.filter.Filter filter) {
48: return (Filter) factory.or(this , filter);
49: }
50:
51: public Filter not() {
52: return (Filter) factory.not(this);
53: }
54: }
|