1 /*2 * Copyright (c) 2002-2003 by OpenSymphony3 * All rights reserved.4 */5 package com.opensymphony.workflow.query;6 7 import java.io.Serializable ;8 9 10 /**11 * Abstract base class for expressions used in a workflow query.12 * Expressions can be negate and/or nested. The default is not negate.13 * <p></p>14 * Expressions which are supported by all stores are {@link FieldExpression} and {@link NestedExpression}.15 * <p></p>16 * Store specific expressions like XPathExpression can be added.17 *18 * @author Christine Zimmermann19 * @version $Revision: 1.7 $20 */21 public abstract class Expression implements Serializable {22 //~ Instance fields ////////////////////////////////////////////////////////23 24 protected boolean negate = false;25 26 //~ Constructors ///////////////////////////////////////////////////////////27 28 protected Expression() {29 }30 31 //~ Methods ////////////////////////////////////////////////////////////////32 33 public boolean isNegate() {34 return negate;35 }36 37 abstract public boolean isNested();38 }39