01: package org.ztemplates.actions.urlhandler.tree.term;
02:
03: import org.ztemplates.actions.expression.ZParserException;
04: import org.ztemplates.actions.util.ZFormatUtil;
05:
06: public class ZTreeTail extends ZTreeTerm {
07: private final String name;
08:
09: public ZTreeTail(Class clazz, String name) throws ZParserException {
10: super (clazz);
11: this .name = name;
12: }
13:
14: public String getName() {
15: return name;
16: }
17:
18: public void toXml(StringBuffer sb, int depth) {
19: ZFormatUtil.indent(sb, depth);
20: sb.append("<tail name=\"" + name + "\"/>");
21: }
22:
23: public String toDefinition() {
24: return "*{" + name + "}";
25: }
26: }
|