public abstract class AbstractGenerator extends Object implements FrontEndGenerator
| Modifier and Type | Field and Description |
|---|---|
protected ToolContext |
env |
protected String |
name |
protected VelocityGenerator |
velocity |
| Constructor and Description |
|---|
AbstractGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearAttributes() |
protected void |
doWrite(String templateName,
Writer outputs) |
ToolContext |
getEnvironment() |
String |
getName() |
String |
getOutputDir() |
protected boolean |
isCollision(String packageName,
String filename) |
protected boolean |
isCollision(String packageName,
String filename,
String ext) |
protected Writer |
parseOutputName(String packageName,
String filename) |
protected Writer |
parseOutputName(String packageName,
String filename,
String ext) |
abstract void |
register(ClassCollector collector,
String packageName,
String fileName) |
protected void |
setAttributes(String n,
Object value) |
protected void |
setCommonAttributes() |
void |
setEnvironment(ToolContext penv) |
protected boolean |
wantToKeep() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgenerateprotected ToolContext env
protected String name
protected VelocityGenerator velocity
protected void doWrite(String templateName, Writer outputs) throws ToolException
ToolExceptionprotected boolean isCollision(String packageName, String filename) throws ToolException
ToolExceptionprotected boolean isCollision(String packageName, String filename, String ext) throws ToolException
ToolExceptionprotected boolean wantToKeep()
protected Writer parseOutputName(String packageName, String filename, String ext) throws ToolException
ToolExceptionpublic abstract void register(ClassCollector collector, String packageName, String fileName)
protected Writer parseOutputName(String packageName, String filename) throws ToolException
ToolExceptionprotected void setCommonAttributes()
protected void clearAttributes()
public void setEnvironment(ToolContext penv)
public ToolContext getEnvironment()
public String getOutputDir()
public String getName()
getName in interface FrontEndGeneratorApache CXF