Apache CXF API

org.apache.cxf.tools.wsdlto.core
Class AbstractGenerator

java.lang.Object
  extended by 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
protected  ToolContext env
           
protected  String name
           
protected  VelocityGenerator velocity
           
 
Constructor Summary
AbstractGenerator()
           
 
Method Summary
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()
           
 
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
Constructor Detail

AbstractGenerator

public AbstractGenerator()
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

setAttributes

protected void setAttributes(String n,
                             Object value)

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:
getName in interface FrontEndGenerator

Apache CXF API

Apache CXF