All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ztemplates.actions.urlhandler.tree.term.ZTreeTerm Maven / Gradle / Ivy

Go to download

java web framework - annotations - pojo - NO XML - state-free - clean, technology agnostic urls - REST - invisible to the web-client - JSP, Velocity, FreeMarker (others pluggable) - annotations for JavaScript/CSS dependencies - create reusable components

The newest version!
package org.ztemplates.actions.urlhandler.tree.term;

import java.io.Serializable;

import org.ztemplates.actions.expression.ZParserException;

public abstract class ZTreeTerm implements Serializable
{
  private final Class clazz;


  public ZTreeTerm(Class clazz) throws ZParserException
  {
    super();
    this.clazz = clazz;
  }


  public Class getClazz()
  {
    return clazz;
  }


  public abstract void toXml(StringBuffer sb, int i);


  public abstract String toDefinition();

  // @Override
  // public String toString() {
  // StringBuffer sb = new StringBuffer();
  // toXml(sb, 0);
  // return sb.toString();
  // }
  //
  // public void toXml(StringBuffer sb, int depth) {
  // ZFormatUtil.indent(sb, depth);
  // sb.append("");
  // term.toXml(sb, depth + 1);
  // ZFormatUtil.indent(sb, depth);
  // sb.append("");
  // }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy