KickJava   Java API By Example, From Geeks To Geeks.

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


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

18 public class SearchQueryOperator extends AbstractExpressionImpl {
19
20     /**
21      * Operator value AND
22      */

23     public static final String JavaDoc AND = "and";
24
25     /**
26      * Operator value OR
27      */

28     public static final String JavaDoc OR = "or";
29
30     /**
31      * Operator value NOT
32      */

33     public static final String JavaDoc NOT = "not";
34
35     /**
36      * operator
37      */

38     private String JavaDoc operator;
39
40     /**
41      * @param operator
42      */

43     public SearchQueryOperator(String JavaDoc operator) {
44         this.operator = operator;
45     }
46
47     /**
48      * get operator name
49      * @return String
50      */

51     public String JavaDoc getOperator() {
52         return operator;
53     }
54
55     /**
56      * set operator name
57      * @param operator
58      */

59     public void setOperator(String JavaDoc operator) {
60         this.operator = operator;
61     }
62 }
63
Popular Tags