Statistics
| Revision:

gvsig-sldtools / org.gvsig.sld / org.gvsig.sldsupport / org.gvsig.sldsupport.lib / org.gvsig.sldsupport.lib.api / src / main / java / org / gvsig / sldsupport / sld / filter / SLDFilter.java @ 46

History | View | Annotate | Download (1.99 KB)

1
/*******************************************************************************
2
 *
3
 *   gvSIG. Desktop Geographic Information System.
4
 *  
5
 *   Copyright (C) 2007-2013 gvSIG Association.
6
 *  
7
 *   This program is free software; you can redistribute it and/or
8
 *   modify it under the terms of the GNU General Public License
9
 *   as published by the Free Software Foundation; either version 3
10
 *   of the License, or (at your option) any later version.
11
 *  
12
 *   This program is distributed in the hope that it will be useful,
13
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 *   GNU General Public License for more details.
16
 *  
17
 *   You should have received a copy of the GNU General Public License
18
 *   along with this program; if not, write to the Free Software
19
 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
20
 *   MA  02110-1301, USA.
21
 *  
22
 *   For any additional information, do not hesitate to contact us
23
 *   at info AT gvsig.com, or visit our website www.gvsig.com.
24
 *   
25
 *******************************************************************************/
26
package org.gvsig.sldsupport.sld.filter;
27

    
28
public abstract class SLDFilter {
29
        
30
        protected SLDFilterOperator operator = null;
31
        protected boolean isElse = false;
32

    
33
        public SLDFilter() {
34
        }
35
        
36
        /**
37
         * If this is true, getFilterOperator() must not be
38
         * called.
39
         * 
40
         * @return
41
         */
42
        public boolean isElse() {
43
                return isElse;
44
        }
45
        
46
        public void setIsElse(boolean b) {
47
                isElse = b;
48
        }
49

    
50
        
51
        public SLDFilterOperator getFilterOperator() {
52
                return operator;
53
        }
54
        
55
        public void setFilterOperator(SLDFilterOperator ope) {
56
                operator = ope;
57
        }
58
        
59
        /**
60
         * This causes the reset of the SLDFilterOperator
61
         * 
62
         * @param expr as a SQL predicate
63
         */
64
        public abstract void setSQLExpression(String expr);
65
        
66
        /**
67
         * Get expression as a SQL predicate
68
         * @return
69
         */
70
        public abstract String getSQLExpression();
71

    
72

    
73
}