01: package org.drools.lang.descr;
02:
03: import java.util.ArrayList;
04: import java.util.List;
05:
06: public class FactTemplateDescr extends BaseDescr {
07: private static final long serialVersionUID = 400L;
08:
09: String name;
10: List fields = new ArrayList(1);
11:
12: public FactTemplateDescr(final String name) {
13: this .name = name;
14: }
15:
16: public void addFieldTemplate(final FieldTemplateDescr fieldTemplate) {
17: this .fields.add(fieldTemplate);
18: }
19:
20: public List getFields() {
21: return this .fields;
22: }
23:
24: public String getName() {
25: return this.name;
26: }
27:
28: }
|