KickJava   Java API By Example, From Geeks To Geeks.

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


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: SearchQueryParameter.java 6341 2006-09-12 09:18:27Z philipp $
17  */

18 public abstract class SearchQueryParameter extends AbstractExpressionImpl {
19
20     /**
21      * parameter name
22      */

23     protected String JavaDoc name;
24
25     /**
26      * parameter value, this could be either String or Date
27      */

28     protected Object JavaDoc value;
29
30     /**
31      * constraint for this parameter
32      */

33     protected String JavaDoc constraint;
34
35     /**
36      * @param name of this parameter
37      * @param value
38      * @param constraint check constraint constants
39      */

40     public SearchQueryParameter(String JavaDoc name, Object JavaDoc value, String JavaDoc constraint) {
41         this.name = name;
42         this.value = value;
43         this.constraint = constraint;
44     }
45
46     /**
47      * get name of the parameter field
48      * @return name
49      */

50     public String JavaDoc getName() {
51         return name;
52     }
53
54     /**
55      * set parameter field name
56      * @param name
57      */

58     public void setName(String JavaDoc name) {
59         this.name = name;
60     }
61
62     /**
63      * get constraint name
64      * @return constraint
65      */

66     public String JavaDoc getConstraint() {
67         return constraint;
68     }
69
70     /**
71      * set constraint
72      * @param constraint
73      */

74     public void setConstraint(String JavaDoc constraint) {
75         this.constraint = constraint;
76     }
77
78 }
79
Popular Tags