01: package org.drools.eclipse.core;
02:
03: /**
04: * This represents a query.
05: *
06: * @author <a href="mailto:kris_verlaenen@hotmail.com">kris verlaenen </a>
07: */
08: public class Query extends DroolsElement {
09:
10: private final String query;
11:
12: Query(Package parent, String query) {
13: super (parent);
14: this .query = query;
15: }
16:
17: public Package getParentPackage() {
18: return (Package) getParent();
19: }
20:
21: public String getQueryName() {
22: return query;
23: }
24:
25: public int getType() {
26: return QUERY;
27: }
28:
29: public DroolsElement[] getChildren() {
30: return NO_ELEMENTS;
31: }
32:
33: public String toString() {
34: return query;
35: }
36:
37: }
|