01: package org.drools.lang.descr;
02:
03: /*
04: * Copyright 2005 JBoss Inc
05: *
06: * Licensed under the Apache License, Version 2.0 (the "License");
07: * you may not use this file except in compliance with the License.
08: * You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS,
14: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: */
18:
19: public class ReturnValueRestrictionDescr extends RestrictionDescr {
20: /**
21: *
22: */
23: private static final long serialVersionUID = 400L;
24: private String evaluator;
25: private Object content;
26: private String[] declarations;
27:
28: private String classMethodName;
29:
30: public ReturnValueRestrictionDescr(final String evaluator) {
31: this .evaluator = evaluator;
32: }
33:
34: public ReturnValueRestrictionDescr(final String evaluator,
35: final Object content) {
36: this .evaluator = evaluator;
37: this .content = content;
38: }
39:
40: public String getClassMethodName() {
41: return this .classMethodName;
42: }
43:
44: public void setClassMethodName(final String classMethodName) {
45: this .classMethodName = classMethodName;
46: }
47:
48: public String getEvaluator() {
49: return this .evaluator;
50: }
51:
52: public Object getContent() {
53: return this .content;
54: }
55:
56: public void setContent(final String text) {
57: this .content = text;
58: }
59:
60: public void setDeclarations(final String[] declarations) {
61: this .declarations = declarations;
62: }
63:
64: public String[] getDeclarations() {
65: return this .declarations;
66: }
67:
68: public String toString() {
69: return "[ReturnValue: " + this .evaluator + " " + this .content
70: + "]";
71: }
72: }
|