KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > service > cmr > search > SearchStatement


1 /*
2  * Copyright (C) 2005 Alfresco, Inc.
3  *
4  * Licensed under the Mozilla Public License version 1.1
5  * with a permitted attribution clause. You may obtain a
6  * copy of the License at
7  *
8  * http://www.alfresco.org/legal/license.txt
9  *
10  * Unless required by applicable law or agreed to in writing,
11  * software distributed under the License is distributed on an
12  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13  * either express or implied. See the License for the specific
14  * language governing permissions and limitations under the
15  * License.
16  */

17 package org.alfresco.service.cmr.search;
18
19 /**
20  * A search string and language.
21  *
22  * @author Andy Hind
23  */

24 public class SearchStatement
25 {
26
27     private String JavaDoc language;
28     private String JavaDoc query;
29
30     SearchStatement()
31     {
32         super();
33     }
34     
35     /**
36      * A constructor that takes both arguments.
37      *
38      * @param language
39      * @param query
40      */

41     SearchStatement(String JavaDoc language, String JavaDoc query)
42     {
43         this.language = language;
44         this.query = query;
45     }
46
47     /**
48      * Get the query language.
49      *
50      * @return
51      */

52     public String JavaDoc getLanguage()
53     {
54         return language;
55     }
56
57     /**
58      * Get the query.
59      *
60      * @return
61      */

62     public String JavaDoc getQuery()
63     {
64         return query;
65     }
66
67     /**
68      * Set the query language.
69      *
70      * @param language - the query language.
71      */

72     public void setLanguage(String JavaDoc language)
73     {
74         this.language = language;
75     }
76
77     /**
78      * Set the query string.
79      *
80      * @param query - the query string.
81      */

82     public void setQuery(String JavaDoc query)
83     {
84         this.query = query;
85     }
86     
87 }
88
Popular Tags