org.apache.cxf.tools.wsdlto.core
Class AbstractGenerator
java.lang.Object
org.apache.cxf.tools.wsdlto.core.AbstractGenerator
- All Implemented Interfaces:
- org.apache.cxf.tools.common.FrontEndGenerator
public abstract class AbstractGenerator
- extends Object
- implements org.apache.cxf.tools.common.FrontEndGenerator
|
Field Summary |
protected org.apache.cxf.tools.common.ToolContext |
env
|
protected String |
name
|
protected org.apache.cxf.tools.common.VelocityGenerator |
velocity
|
|
Method Summary |
protected void |
clearAttributes()
|
protected void |
doWrite(String templateName,
Writer outputs)
|
org.apache.cxf.tools.common.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(org.apache.cxf.tools.util.ClassCollector collector,
String packageName,
String fileName)
|
protected void |
setAttributes(String n,
Object value)
|
protected void |
setCommonAttributes()
|
void |
setEnvironment(org.apache.cxf.tools.common.ToolContext penv)
|
protected boolean |
wantToKeep()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.cxf.tools.common.FrontEndGenerator |
generate |
env
protected org.apache.cxf.tools.common.ToolContext env
name
protected String name
velocity
protected org.apache.cxf.tools.common.VelocityGenerator velocity
AbstractGenerator
public AbstractGenerator()
doWrite
protected void doWrite(String templateName,
Writer outputs)
throws org.apache.cxf.tools.common.ToolException
- Throws:
org.apache.cxf.tools.common.ToolException
isCollision
protected boolean isCollision(String packageName,
String filename)
throws org.apache.cxf.tools.common.ToolException
- Throws:
org.apache.cxf.tools.common.ToolException
isCollision
protected boolean isCollision(String packageName,
String filename,
String ext)
throws org.apache.cxf.tools.common.ToolException
- Throws:
org.apache.cxf.tools.common.ToolException
wantToKeep
protected boolean wantToKeep()
parseOutputName
protected Writer parseOutputName(String packageName,
String filename,
String ext)
throws org.apache.cxf.tools.common.ToolException
- Throws:
org.apache.cxf.tools.common.ToolException
register
public abstract void register(org.apache.cxf.tools.util.ClassCollector collector,
String packageName,
String fileName)
parseOutputName
protected Writer parseOutputName(String packageName,
String filename)
throws org.apache.cxf.tools.common.ToolException
- Throws:
org.apache.cxf.tools.common.ToolException
setAttributes
protected void setAttributes(String n,
Object value)
setCommonAttributes
protected void setCommonAttributes()
clearAttributes
protected void clearAttributes()
setEnvironment
public void setEnvironment(org.apache.cxf.tools.common.ToolContext penv)
getEnvironment
public org.apache.cxf.tools.common.ToolContext getEnvironment()
getOutputDir
public String getOutputDir()
getName
public String getName()
- Specified by:
getName in interface org.apache.cxf.tools.common.FrontEndGenerator
Apache CXF