com.sun.tools.ws.processor.generator
Class GeneratorBase

java.lang.Object
  extended by com.sun.tools.ws.processor.generator.GeneratorBase
All Implemented Interfaces:
GeneratorConstants, ModelVisitor, ModelerConstants
Direct Known Subclasses:
CustomExceptionGenerator, SeiGenerator, ServiceGenerator

public abstract class GeneratorBase
extends Object
implements GeneratorConstants, ModelVisitor


Field Summary
protected  com.sun.codemodel.JCodeModel cm
           
protected  boolean donotOverride
           
protected  Model model
           
protected  WsimportOptions options
           
protected  ErrorReceiver receiver
           
protected  String wsdlLocation
           
 
Fields inherited from interface com.sun.tools.ws.processor.generator.GeneratorConstants
DOTC, FAULT_CLASS_MEMBER_NAME, GET, IS, JAVA_SRC_SUFFIX, QNAME_SUFFIX, RESPONSE, SIG_INNERCLASS
 
Fields inherited from interface com.sun.tools.ws.processor.modeler.ModelerConstants
ARRAY_LIST_CLASSNAME, ARRAY_STR, BIGDECIMAL_CLASSNAME, BIGINTEGER_CLASSNAME, BOOLEAN_CLASSNAME, BOXED_BOOLEAN_CLASSNAME, BOXED_BYTE_ARRAY_CLASSNAME, BOXED_BYTE_CLASSNAME, BOXED_CHAR_CLASSNAME, BOXED_DOUBLE_CLASSNAME, BOXED_FLOAT_CLASSNAME, BOXED_INTEGER_CLASSNAME, BOXED_LONG_CLASSNAME, BOXED_SHORT_CLASSNAME, BRACKETS, BYTE_ARRAY_CLASSNAME, BYTE_CLASSNAME, CALENDAR_CLASSNAME, CHAR_CLASSNAME, CLASS_CLASSNAME, COLLECTION_CLASSNAME, DATA_HANDLER_CLASSNAME, DATE_CLASSNAME, DOUBLE_CLASSNAME, FALSE_STR, FLOAT_CLASSNAME, HASH_MAP_CLASSNAME, HASH_SET_CLASSNAME, HASHTABLE_CLASSNAME, IMAGE_CLASSNAME, INT_CLASSNAME, IOEXCEPTION_CLASSNAME, JAX_WS_MAP_ENTRY_CLASSNAME, LINKED_LIST_CLASSNAME, LIST_CLASSNAME, LONG_CLASSNAME, MAP_CLASSNAME, MIME_MULTIPART_CLASSNAME, NULL_STR, OBJECT_CLASSNAME, PROPERTIES_CLASSNAME, QNAME_CLASSNAME, SET_CLASSNAME, SHORT_CLASSNAME, SOAPELEMENT_CLASSNAME, SOURCE_CLASSNAME, STACK_CLASSNAME, STRING_ARRAY_CLASSNAME, STRING_CLASSNAME, TREE_MAP_CLASSNAME, TREE_SET_CLASSNAME, URI_CLASSNAME, VECTOR_CLASSNAME, VOID_CLASSNAME, ZERO_STR
 
Constructor Summary
protected GeneratorBase(Model model, WsimportOptions options, ErrorReceiver receiver)
           
 
Method Summary
protected  void doGeneration()
           
protected  com.sun.codemodel.JDefinedClass getClass(String className, com.sun.codemodel.ClassType type)
           
 List<String> getJAXWSClassComment()
           
static List<String> getJAXWSClassComment(String targetVersion)
           
protected  void log(String msg)
           
 void visit(Block block)
           
 void visit(Fault fault)
           
 void visit(Model model)
           
 void visit(Operation operation)
           
 void visit(Parameter param)
           
 void visit(Port port)
           
 void visit(Request request)
           
 void visit(Response response)
           
 void visit(Service service)
           
protected  void writeHandlerConfig(String className, com.sun.codemodel.JDefinedClass cls, WsimportOptions options)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

donotOverride

protected boolean donotOverride

cm

protected com.sun.codemodel.JCodeModel cm

model

protected final Model model

wsdlLocation

protected final String wsdlLocation

receiver

protected final ErrorReceiver receiver

options

protected final WsimportOptions options
Constructor Detail

GeneratorBase

protected GeneratorBase(Model model,
                        WsimportOptions options,
                        ErrorReceiver receiver)
Method Detail

doGeneration

protected void doGeneration()

visit

public void visit(Model model)
           throws Exception
Specified by:
visit in interface ModelVisitor
Throws:
Exception

visit

public void visit(Service service)
           throws Exception
Specified by:
visit in interface ModelVisitor
Throws:
Exception

visit

public void visit(Port port)
           throws Exception
Specified by:
visit in interface ModelVisitor
Throws:
Exception

visit

public void visit(Operation operation)
           throws Exception
Specified by:
visit in interface ModelVisitor
Throws:
Exception

visit

public void visit(Parameter param)
           throws Exception
Specified by:
visit in interface ModelVisitor
Throws:
Exception

visit

public void visit(Block block)
           throws Exception
Specified by:
visit in interface ModelVisitor
Throws:
Exception

visit

public void visit(Response response)
           throws Exception
Specified by:
visit in interface ModelVisitor
Throws:
Exception

visit

public void visit(Request request)
           throws Exception
Specified by:
visit in interface ModelVisitor
Throws:
Exception

visit

public void visit(Fault fault)
           throws Exception
Specified by:
visit in interface ModelVisitor
Throws:
Exception

getJAXWSClassComment

public List<String> getJAXWSClassComment()

getJAXWSClassComment

public static List<String> getJAXWSClassComment(String targetVersion)

getClass

protected com.sun.codemodel.JDefinedClass getClass(String className,
                                                   com.sun.codemodel.ClassType type)
                                            throws com.sun.codemodel.JClassAlreadyExistsException
Throws:
com.sun.codemodel.JClassAlreadyExistsException

log

protected void log(String msg)

writeHandlerConfig

protected void writeHandlerConfig(String className,
                                  com.sun.codemodel.JDefinedClass cls,
                                  WsimportOptions options)