01: package org.drools.integrationtests.helloworld;
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: import java.util.ArrayList;
20: import java.util.Date;
21: import java.util.List;
22:
23: public class Message {
24:
25: private String message;
26: private List list = new ArrayList();
27: private int number = 0;
28: private Date birthday = new Date();
29: private boolean fired = false;
30:
31: public Message() {
32:
33: }
34:
35: public boolean isFired() {
36: return this .fired;
37: }
38:
39: public void setFired(final boolean fired) {
40: this .fired = fired;
41: }
42:
43: public Date getBirthday() {
44: return this .birthday;
45: }
46:
47: public void setBirthday(final Date birthday) {
48: this .birthday = birthday;
49: }
50:
51: public int getNumber() {
52: return this .number;
53: }
54:
55: public void setNumber(final int number) {
56: this .number = number;
57: }
58:
59: public Message(final String msg) {
60: this .message = msg;
61: }
62:
63: public String getMessage() {
64: return this .message;
65: }
66:
67: public List getList() {
68: return this .list;
69: }
70:
71: public void setList(final List list) {
72: this .list = list;
73: }
74:
75: public void addToList(final String s) {
76: this.list.add(s);
77: }
78:
79: }
|