01: /**
02: * Copyright 2006 Webmedia Group Ltd.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: **/package org.araneaframework.backend.list.memorybased;
16:
17: import java.io.Serializable;
18: import java.util.Map;
19:
20: /**
21: * General interface for objects that can create an expression.
22: * <p>
23: * Transforms a Map into an Expression.
24: *
25: * @see Expression
26: * @see ExpressionFactory
27: *
28: * @author Rein Raudjärv
29: */
30: public interface ExpressionBuilder extends Serializable {
31: /**
32: * Builds <code>Expression</code>.
33: *
34: * @param data
35: * object that can be used to configure building the expressions.
36: * @return <code>Expression</code> that is built according to the
37: * <code>data</code> or null if no expression has been built.
38: */
39: Expression buildExpression(Map data);
40: }
|