KickJava   Java API By Example, From Geeks To Geeks.

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


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

18 public abstract class AbstractExpressionImpl implements SearchQueryExpression {
19
20     /**
21      * previous pointer
22      */

23     private SearchQueryExpression left;
24
25     /**
26      * next pointer
27      */

28     private SearchQueryExpression right;
29
30     /**
31      * get left expression
32      * @return object on left
33      */

34     public SearchQueryExpression getLeft() {
35         return this.left;
36     }
37
38     /**
39      * set left expression
40      * @param left object on left
41      */

42     public void setleft(SearchQueryExpression left) {
43         this.left = left;
44     }
45
46     /**
47      * checks if has left
48      * @return true if left object exist
49      */

50     public boolean hasLeft() {
51         return (this.getLeft() != null);
52     }
53
54     /**
55      * get right expression
56      * @return object on right
57      */

58     public SearchQueryExpression getRight() {
59         return this.right;
60     }
61
62     /**
63      * set right expression
64      * @param right object on right
65      */

66     public void setRight(SearchQueryExpression right) {
67         this.right = right;
68     }
69
70     /**
71      * checks if has right
72      * @return true if right object exist
73      */

74     public boolean hasRight() {
75         return (this.getRight() != null);
76     }
77
78 }
79
Popular Tags