View Javadoc

1   /*
2    * $Id: ExpressionImpl.java,v 1.1 2004/12/15 14:18:10 patforna Exp $
3    *
4    * Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
5    * Berne University of Applied Sciences
6    * School of Engineering and Information Technology
7    * All rights reserved.
8    */
9   package bexee.model.expression.impl;
10  
11  import bexee.model.expression.Expression;
12  
13  /***
14   * Abstract superclass to be used by all expression implementations.
15   * 
16   * @version $Revision: 1.1 $, $Date: 2004/12/15 14:18:10 $
17   * @author Patric Fornasier
18   * @author Pawel Kowalski
19   */
20  public abstract class ExpressionImpl implements Expression {
21  
22      private String expressionLitteral = null;
23  
24      //***************************************************/
25      // c'tors
26      //***************************************************/
27  
28      public ExpressionImpl(String expressionLitteral) {
29          super();
30          this.expressionLitteral = expressionLitteral;
31      }
32  
33      //***************************************************/
34      // bexee.model.expression.Expression
35      //***************************************************/
36  
37      /*
38       * (non-Javadoc)
39       * 
40       * @see bexee.model.expression.Expression#setExpressionLitteral(java.lang.String)
41       */
42      public void setExpressionLitteral(String expressionLitteral) {
43          this.expressionLitteral = expressionLitteral;
44      }
45  
46      /*
47       * (non-Javadoc)
48       * 
49       * @see bexee.model.expression.Expression#getExpressionLitteral()
50       */
51      public String getExpressionLitteral() {
52          return expressionLitteral;
53      }
54  
55      /*
56       * (non-Javadoc)
57       * 
58       * @see bexee.model.expression.Expression#evaluate()
59       */
60      public abstract boolean evaluate();
61  
62  }