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 java.lang.Object
implements GeneratorConstants, ModelVisitor

Author:
WS Development Team

Field Summary
protected  JCodeModel cm
           
protected  boolean donotOverride
           
protected  Model model
           
protected  WsimportOptions options
           
protected  ErrorReceiver receiver
           
protected  java.lang.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  JDefinedClass getClass(java.lang.String className, ClassType type)
           
 java.util.List<java.lang.String> getJAXWSClassComment()
           
static java.util.List<java.lang.String> getJAXWSClassComment(java.lang.String targetVersion)
           
protected  void log(java.lang.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(java.lang.String className, 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 JCodeModel cm

model

protected final Model model

wsdlLocation

protected final java.lang.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 java.lang.Exception
Specified by:
visit in interface ModelVisitor
Throws:
java.lang.Exception

visit

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

visit

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

visit

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

visit

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

visit

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

visit

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

visit

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

visit

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

getJAXWSClassComment

public java.util.List<java.lang.String> getJAXWSClassComment()

getJAXWSClassComment

public static java.util.List<java.lang.String> getJAXWSClassComment(java.lang.String targetVersion)

getClass

protected JDefinedClass getClass(java.lang.String className,
                                 ClassType type)
                          throws JClassAlreadyExistsException
Throws:
JClassAlreadyExistsException

log

protected void log(java.lang.String msg)

writeHandlerConfig

protected void writeHandlerConfig(java.lang.String className,
                                  JDefinedClass cls,
                                  WsimportOptions options)


Copyright © 2005-2011 Oracle Corporation. All Rights Reserved.