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