Package org.apache.cxf.tools.wsdlto.core
Class AbstractGenerator
- java.lang.Object
-
- org.apache.cxf.tools.wsdlto.core.AbstractGenerator
-
- All Implemented Interfaces:
FrontEndGenerator
- Direct Known Subclasses:
AbstractJaxwsGenerator,AbstractJAXWSGenerator,AbstractSimpleGenerator,AntGenerator
public abstract class AbstractGenerator extends Object implements FrontEndGenerator
-
-
Field Summary
Fields Modifier and Type Field Description protected ToolContextenvprotected Stringnameprotected VelocityGeneratorvelocity
-
Constructor Summary
Constructors Constructor Description AbstractGenerator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidclearAttributes()protected voiddoWrite(String templateName, Writer outputs)ToolContextgetEnvironment()StringgetName()StringgetOutputDir()protected booleanisCollision(String packageName, String filename)protected booleanisCollision(String packageName, String filename, String ext)protected WriterparseOutputName(String packageName, String filename)protected WriterparseOutputName(String packageName, String filename, String ext)abstract voidregister(ClassCollector collector, String packageName, String fileName)protected voidsetAttributes(String n, Object value)protected voidsetCommonAttributes()voidsetEnvironment(ToolContext penv)protected booleanwantToKeep()-
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
-
-
-
-
Field Detail
-
env
protected ToolContext env
-
name
protected String name
-
velocity
protected VelocityGenerator velocity
-
-
Method Detail
-
doWrite
protected void doWrite(String templateName, Writer outputs) throws ToolException
- Throws:
ToolException
-
isCollision
protected boolean isCollision(String packageName, String filename) throws ToolException
- Throws:
ToolException
-
isCollision
protected boolean isCollision(String packageName, String filename, String ext) throws ToolException
- Throws:
ToolException
-
wantToKeep
protected boolean wantToKeep()
-
parseOutputName
protected Writer parseOutputName(String packageName, String filename, String ext) throws ToolException
- Throws:
ToolException
-
register
public abstract void register(ClassCollector collector, String packageName, String fileName)
-
parseOutputName
protected Writer parseOutputName(String packageName, String filename) throws ToolException
- Throws:
ToolException
-
setCommonAttributes
protected void setCommonAttributes()
-
clearAttributes
protected void clearAttributes()
-
setEnvironment
public void setEnvironment(ToolContext penv)
-
getEnvironment
public ToolContext getEnvironment()
-
getOutputDir
public String getOutputDir()
-
getName
public String getName()
- Specified by:
getNamein interfaceFrontEndGenerator
-
-