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