KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejtools > jmx > browser > web > QueryConstants


1 /*
2
3  * EJTools, the Enterprise Java Tools
4
5  *
6
7  * Distributable under LGPL license.
8
9  * See terms of license at www.gnu.org.
10
11  */

12
13 package org.ejtools.jmx.browser.web;
14
15
16
17 import java.io.Serializable JavaDoc;
18
19 import java.util.Collection JavaDoc;
20
21 import java.util.Vector JavaDoc;
22
23
24
25 /**
26
27  * @author letiemble
28
29  * @created 2 janvier 2002
30
31  * @version $Revision: 1.6 $
32
33  */

34
35 public class QueryConstants implements Serializable JavaDoc
36
37 {
38
39    /** Description of the Field */
40
41    protected Vector JavaDoc queries;
42
43    /** Description of the Field */
44
45    protected Vector JavaDoc types;
46
47
48
49
50
51    /** Constructor for the SearchTypeEditor object */
52
53    public QueryConstants()
54
55    {
56
57       types = new Vector JavaDoc();
58
59       types.add("java.lang.String");
60
61       types.add("java.lang.Integer");
62
63       types.add("java.lang.Long");
64
65       types.add("java.lang.Float");
66
67       types.add("java.lang.Double");
68
69       types.add("java.lang.Boolean");
70
71
72
73       types.add("byte");
74
75       types.add("short");
76
77       types.add("int");
78
79       types.add("long");
80
81       types.add("float");
82
83       types.add("double");
84
85       types.add("boolean");
86
87
88
89       queries = new Vector JavaDoc();
90
91       queries.add("=");
92
93       queries.add(">");
94
95       queries.add(">=");
96
97       queries.add("<");
98
99       queries.add("<=");
100
101    }
102
103
104
105
106
107    /**
108
109     * Gets the values attribute of the SearchTypeConstants object
110
111     *
112
113     * @return The values value
114
115     */

116
117    public Collection JavaDoc getQueries()
118
119    {
120
121       return this.queries;
122
123    }
124
125
126
127
128
129    /**
130
131     * Gets the labels attribute of the SearchTypeConstants object
132
133     *
134
135     * @return The labels value
136
137     */

138
139    public Collection JavaDoc getTypes()
140
141    {
142
143       return this.types;
144
145    }
146
147 }
148
149
150
151
Popular Tags