01: /*
02: * $Id: ExpressionImpl.java,v 1.4 2004/12/09 08:42:08 kowap Exp $
03: *
04: * Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
05: * Berne University of Applied Sciences
06: * School of Engineering and Information Technology
07: * All rights reserved.
08: */
09: 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.4 $, $Date: 2004/12/09 08:42:08 $
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: }
|