01: /*
02: * Copyright 2006 JBoss Inc
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: */
16:
17: package org.drools.rule;
18:
19: import java.util.Map;
20:
21: import org.drools.spi.RuleComponent;
22:
23: /**
24: * @author etirelli
25: *
26: */
27: public interface RuleConditionElement extends RuleComponent, Cloneable {
28:
29: /**
30: * Returns a Map of declarations that are
31: * visible inside this conditional element
32: *
33: * @return
34: */
35: public Map getInnerDeclarations();
36:
37: /**
38: * Returns a Map of declarations that are visible
39: * outside this conditional element.
40: *
41: * @return
42: */
43: public Map getOuterDeclarations();
44:
45: /**
46: * Resolves the given identifier in the current scope and
47: * returns the Declaration object for the declaration.
48: * Returns null if identifier can not be resolved.
49: *
50: * @param identifier
51: * @return
52: */
53: public Declaration resolveDeclaration(String identifier);
54:
55: /**
56: * Returns a clone from itself
57: * @return
58: */
59: public Object clone();
60:
61: }
|