01: package org.drools.lang.descr;
02:
03: import java.util.Collections;
04: import java.util.List;
05:
06: public class FromDescr extends PatternSourceDescr implements
07: ConditionalElementDescr {
08:
09: private static final long serialVersionUID = 400L;
10: private DeclarativeInvokerDescr dataSource;
11:
12: public DeclarativeInvokerDescr getDataSource() {
13: return this .dataSource;
14: }
15:
16: public void setDataSource(final DeclarativeInvokerDescr dataSource) {
17: this .dataSource = dataSource;
18: }
19:
20: public void addDescr(final BaseDescr baseDescr) {
21: throw new UnsupportedOperationException(
22: "Can't add descriptors to " + this .getClass().getName());
23: }
24:
25: public void insertBeforeLast(final Class clazz,
26: final BaseDescr baseDescr) {
27: throw new UnsupportedOperationException(
28: "Can't add descriptors to " + this .getClass().getName());
29: }
30:
31: public List getDescrs() {
32: return Collections.EMPTY_LIST;
33: }
34:
35: public void addOrMerge(BaseDescr baseDescr) {
36: throw new UnsupportedOperationException(
37: "Can't add descriptors to " + this.getClass().getName());
38: }
39:
40: }
|