root / branches / Mobile_Compatible_Hito_1 / libFMap_data / src / org / gvsig / data / vectorial / filter / ExpressionType.java @ 21563
History | View | Annotate | Download (3.41 KB)
1 |
/*
|
---|---|
2 |
* GeoTools - OpenSource mapping toolkit
|
3 |
* http://geotools.org
|
4 |
* (C) 2002-2006, GeoTools Project Managment Committee (PMC)
|
5 |
*
|
6 |
* This library is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU Lesser General Public
|
8 |
* License as published by the Free Software Foundation;
|
9 |
* 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.gvsig.data.vectorial.filter; |
17 |
|
18 |
|
19 |
/**
|
20 |
* The ExpressionType interface lists all the possible type of filter. Should
|
21 |
* be replaced by a type safe enum when we move to Java 1.5
|
22 |
*
|
23 |
* @author wolf
|
24 |
* @source $URL: http://svn.geotools.org/geotools/tags/2.4.2/modules/library/api/src/main/java/org/geotools/filter/ExpressionType.java $
|
25 |
*/
|
26 |
public interface ExpressionType { |
27 |
/* This is a listing of all possible expression types, grouped by
|
28 |
expressions that are implemented by a single expression class
|
29 |
(ie. all math types are implemented by ExpressionMath). */
|
30 |
|
31 |
/* Types implemented by ExpressionLiteral */
|
32 |
/** Defines a literal expression with an undeclared type. */
|
33 |
public static final short LITERAL_UNDECLARED = 115; |
34 |
|
35 |
/** Defines a literal expression with a declared double type. */
|
36 |
public static final short LITERAL_DOUBLE = 101; |
37 |
|
38 |
/** Defines a literal expression with a declared integer type. */
|
39 |
public static final short LITERAL_INTEGER = 102; |
40 |
|
41 |
/** Defines a literal expression with a declared string type. */
|
42 |
public static final short LITERAL_STRING = 103; |
43 |
|
44 |
/** Defines a literal expression with a declared geometry type. */
|
45 |
public static final short LITERAL_GEOMETRY = 104; |
46 |
|
47 |
/**
|
48 |
* Defines a literal expression with a declared long type.
|
49 |
* @since 2.4
|
50 |
**/
|
51 |
public static final short LITERAL_LONG = 100; |
52 |
|
53 |
/* Types implemented by ExpressionMath. */
|
54 |
/** Defines a math expression for adding. */
|
55 |
public static final short MATH_ADD = 105; |
56 |
|
57 |
/** Defines a math expression for subtracting. */
|
58 |
public static final short MATH_SUBTRACT = 106; |
59 |
|
60 |
/** Defines a math expression for multiplying. */
|
61 |
public static final short MATH_MULTIPLY = 107; |
62 |
|
63 |
/** Defines a math expression for dividing. */
|
64 |
public static final short MATH_DIVIDE = 108; |
65 |
|
66 |
/* Types implemented by ExpressionAttribute. */
|
67 |
/** Defines an attribute expression with a declared double type. */
|
68 |
public static final short ATTRIBUTE_DOUBLE = 109; |
69 |
|
70 |
/** Defines an attribute expression with a declared integer type. */
|
71 |
public static final short ATTRIBUTE_INTEGER = 110; |
72 |
|
73 |
/** Defines an attribute expression with a declared string type. */
|
74 |
public static final short ATTRIBUTE_STRING = 111; |
75 |
|
76 |
/** Defines an attribute expression with a declared string type. */
|
77 |
public static final short ATTRIBUTE_GEOMETRY = 112; |
78 |
|
79 |
/** Defines an attribute expression with a declared string type. */
|
80 |
public static final short ATTRIBUTE_UNDECLARED = 100; |
81 |
|
82 |
/** Defines an attribute expression with a declared string type. */
|
83 |
public static final short ATTRIBUTE = 113; |
84 |
|
85 |
/** Defines a function expression */
|
86 |
public static final short FUNCTION = 114; |
87 |
} |