KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > info > magnolia > cms > gui > query > StringSearchQueryParameter


1 /**
2  *
3  * Magnolia and its source-code is licensed under the LGPL.
4  * You may copy, adapt, and redistribute this file for commercial or non-commercial use.
5  * When copying, adapting, or redistributing this document in keeping with the guidelines above,
6  * you are required to provide proper attribution to obinary.
7  * If you reproduce or distribute the document without making any substantive modifications to its content,
8  * please use the following attribution line:
9  *
10  * Copyright 1993-2006 obinary Ltd. (http://www.obinary.com) All rights reserved.
11  *
12  */

13 package info.magnolia.cms.gui.query;
14
15 /**
16  * @author Sameer Charles $Id: StringSearchQueryParameter.java 6341 2006-09-12 09:18:27Z philipp $
17  */

18 public class StringSearchQueryParameter extends SearchQueryParameter {
19
20     /**
21      * sql constraint "CONTAINS"
22      */

23     public static final String JavaDoc CONTAINS = "contains";
24
25     public static final String JavaDoc CONTAINS_NOT = "not";
26
27     public static final String JavaDoc IS = "is";
28
29     public static final String JavaDoc IS_NOT = "isNot";
30
31     /**
32      * sql constraint "STARTS"
33      */

34     public static final String JavaDoc STARTS = "starts";
35
36     /**
37      * sql constraint "ENDS"
38      */

39     public static final String JavaDoc ENDS = "ends";
40
41     /**
42      * @param name of this parameter
43      * @param value
44      * @param constraint check SearchQueryParameter constants
45      */

46     public StringSearchQueryParameter(String JavaDoc name, String JavaDoc value, String JavaDoc constraint) {
47         super(name, value, constraint);
48     }
49
50     /**
51      * get value
52      * @return String value
53      */

54     public String JavaDoc getValue() {
55         return (String JavaDoc) this.value;
56     }
57
58     /**
59      * set value
60      * @param value
61      */

62     public void setValue(String JavaDoc value) {
63         this.value = value;
64     }
65 }
66
Popular Tags