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, wait
generate
protected ToolContext env
protected String name
protected VelocityGenerator velocity
protected void doWrite(String templateName, Writer outputs) throws ToolException
ToolException
protected boolean isCollision(String packageName, String filename) throws ToolException
ToolException
protected boolean isCollision(String packageName, String filename, String ext) throws ToolException
ToolException
protected boolean wantToKeep()
protected Writer parseOutputName(String packageName, String filename, String ext) throws ToolException
ToolException
public abstract void register(ClassCollector collector, String packageName, String fileName)
protected Writer parseOutputName(String packageName, String filename) throws ToolException
ToolException
protected void setCommonAttributes()
protected void clearAttributes()
public void setEnvironment(ToolContext penv)
public ToolContext getEnvironment()
public String getOutputDir()
public String getName()
getName
in interface FrontEndGenerator
Apache CXF