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.lang.descr;
18:
19: /**
20: * A descriptor class for globals.
21: *
22: * @author etirelli
23: */
24: public class GlobalDescr extends BaseDescr {
25:
26: private static final long serialVersionUID = 400L;
27:
28: private String identifier;
29: private String type;
30:
31: public GlobalDescr() {
32: this (null, null);
33: }
34:
35: public GlobalDescr(final String identifier, final String type) {
36: this .identifier = identifier;
37: this .type = type;
38: }
39:
40: /**
41: * @return the identifier
42: */
43: public String getIdentifier() {
44: return this .identifier;
45: }
46:
47: /**
48: * @param identifier the identifier to set
49: */
50: public void setIdentifier(final String identifier) {
51: this .identifier = identifier;
52: }
53:
54: /**
55: * @return the type
56: */
57: public String getType() {
58: return this .type;
59: }
60:
61: /**
62: * @param type the type to set
63: */
64: public void setType(final String type) {
65: this.type = type;
66: }
67:
68: }
|