01: package org.ztemplates.actions.urlhandler.tree.term;
02:
03: import java.io.Serializable;
04:
05: import org.ztemplates.actions.expression.ZParserException;
06:
07: public abstract class ZTreeTerm implements Serializable {
08: private final Class clazz;
09:
10: public ZTreeTerm(Class clazz) throws ZParserException {
11: super ();
12: this .clazz = clazz;
13: }
14:
15: public Class getClazz() {
16: return clazz;
17: }
18:
19: public abstract void toXml(StringBuffer sb, int i);
20:
21: public abstract String toDefinition();
22:
23: // @Override
24: // public String toString() {
25: // StringBuffer sb = new StringBuffer();
26: // toXml(sb, 0);
27: // return sb.toString();
28: // }
29: //
30: // public void toXml(StringBuffer sb, int depth) {
31: // ZFormatUtil.indent(sb, depth);
32: // sb.append("<parsed-term>");
33: // term.toXml(sb, depth + 1);
34: // ZFormatUtil.indent(sb, depth);
35: // sb.append("</parsed-term>");
36: // }
37: }
|