replaced all StringBuffers with StringBuilder to improve performance
[Bob.git] / src / com / interrupt / bob / generator / IGenerator.java
blobe1cfc131791b1dbe2f73397df5b2a8923920a609
1 package com.interrupt.bob.generator;
3 import org.apache.velocity.app.Velocity;
4 import org.apache.velocity.VelocityContext;
5 import org.apache.velocity.Template;
6 import org.apache.velocity.exception.ParseErrorException;
7 import org.apache.velocity.exception.ResourceNotFoundException;
8 import org.xml.sax.Attributes;
9 import java.io.StringWriter;
10 import java.io.FileWriter;
11 import java.io.IOException;
13 import com.interrupt.bob.base.IBob;
15 public interface IGenerator {
17 public void mergeTemplate(VelocityContext context, String tplName, StringBuilder sb);
19 public void appendClassName(IBob tagdef, String visibility, String clazz, String clazzName, StringBuilder sb);
21 public void appendAttribute(String attName, StringBuilder sb);
23 public void appendAttributeAccessors(String attName, StringBuilder sb);
25 public void appendChild(String tagName, StringBuilder sb);
27 public void appendAdders(IBob td, StringBuilder sb);
29 public void appendFinders(IBob td, StringBuilder sb);
31 public void appendListers(IBob td, StringBuilder sb);
33 public void appendRemovers(IBob td, StringBuilder sb);
35 public void appendRemoveAll(IBob td, StringBuilder sb);
37 public void appendMake(IBob td, StringBuilder sb);
39 public void appendClose(StringBuilder sb);
41 public void appendPackage(String nameSpace, StringBuilder sb);