org.apache.axis2.wsdl.codegen.emitter.jaxws
Class JAXWSEmitter

java.lang.Object
  extended by org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter
      extended by org.apache.axis2.wsdl.codegen.emitter.jaxws.JAXWSEmitter
All Implemented Interfaces:
Emitter
Direct Known Subclasses:
JAXWS20Emitter

public abstract class JAXWSEmitter
extends AxisServiceBasedMultiLanguageEmitter


Field Summary
protected static String EXCEPTION_SUFFIX
           
protected static String JAXWS_IMPL_SUFFIX
           
protected static String JAXWS_PORT_TYPE_NAME
           
protected static String SERVICE_SUFFIX
           
protected static String TYPE_SUFFIX
           
 
Fields inherited from class org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter
allServiceInfoHolder, axisBinding, axisEndpoint, axisService, axisServices, CALL_BACK_HANDLER_SUFFIX, codeGenConfiguration, constructorMap, DATABINDING_SUPPORTER_NAME_SUFFIX, faultClassNameMap, faultElementQNameMap, fullyQualifiedFaultClassNameMap, infoHolder, instantiatableMessageClassNames, log, mapper, mepToClassMap, mepToSuffixMap, MESSAGE_RECEIVER_SUFFIX, resolver, SKELETON_CLASS_SUFFIX, SKELETON_CLASS_SUFFIX_BACK, SKELETON_INTERFACE_SUFFIX, SKELETON_INTERFACE_SUFFIX_BACK, STUB_INTERFACE_SUFFIX_BACK, STUB_SUFFIX, TEST_SRC_DIR_NAME, TEST_SUFFIX, uniqueFaultNameCounter, useHolderClass_jaxws, wrapped_jaxws
 
Constructor Summary
JAXWSEmitter()
           
 
Method Summary
protected abstract  Document createDOMDocumentForException(String key)
          Creates the XML model for a Exception Class
protected abstract  Document createDOMDocumentForSEI()
          Creates the XML model for the Service Endpoint interface
protected abstract  Document createDOMDocumentForSEIImpl()
          Creates the XML model for the Service Endpoint interface Implementation class
protected abstract  Document createDOMDocumentForServiceClass()
          Creates the XML model for the Service Class
protected  Document createDOMDocumentForServiceXML()
           
 void emitSkeleton()
          Emits the skeleton
 String extratClassName(String fullyQualifiedName)
           
protected  String getFullyQualifiedName(String className, String packageName)
           
protected  Element getServiceElement(String serviceName, String className, Document doc)
          A resusable method to return the service element for creating the service xml
protected  String resolveNameCollision(String className, String packageName, String suffix)
           
 void setCodeGenConfiguration(CodeGenConfiguration configuration)
          Sets the relevant codegen configuration
protected  void writeExceptions()
          Writes the exception calsses.
protected  void writeServiceClass()
          Write the service class
protected  void writeServiceEndpointInterface()
          Write the service endpoint interface
protected  void writeServiceEndpointInterfaceImpl()
           
 
Methods inherited from class org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter
addAttribute, addElement, addEndpoint, addFaultMessages, addHeaderOperations, addHeaderOperationsToFault, addShortType, addSOAPAction, addSoapVersion, copyMap, copyToFaultMap, createDocumentForMessageReceiver, createDOMDocumentForAntBuild, createDOMDocumentForCallbackHandler, createDOMDocumentForException, createDOMDocumentForInterface, createDOMDocumentForInterfaceImplementation, createDOMDocumentForSkeleton, createDOMDocumentForSkeletonInterface, createDOMDocumentForTestCase, createDOMElementforDatabinders, debugLogDocument, emitStub, fillSyncAttributes, generateAndPopulateFaultNames, generateMethodElement, generateOptionParamComponent, generateParamComponent, generateParamComponent, generateParamComponent, getBase64Elements, getBindingPolicyFromMessage, getBindingPropertyFromMessage, getBindingPropertyFromMessageFault, getBindingPropertyFromOperation, getEmptyDocument, getFaultElement, getFaultParamElements, getFullyQualifiedMessageReceiverName, getFullyQualifiedSkeletonInterfaceName, getFullyQualifiedSkeletonName, getFullyQualifiedStubName, getInputElement, getInputParamElement, getNewCopy, getOpNames, getOutputDirectory, getOutputElement, getOutputParamElement, getParameterElementList, getParameterElementListForHttpHeader, getParameterElementListForSOAPModules, getParamInitializer, getUniqueListofFaults, getUniqueListofFaultsofMep, loadOperations, makeJavaClassName, processModelObjects, resetFaultNames, setMapper, updateFaultPackageForStub, updateMapperClassnames, updateMapperForMessageReceiver, updateMapperForStub, writeAntBuild, writeCallBackHandlers, writeFile, writeInterface, writeInterfaceImplementation, writeMessageReceiver, writeServiceXml, writeSkeleton, writeSkeletonInterface, writeTestClasses, writeWSDLFiles
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_SUFFIX

protected static final String TYPE_SUFFIX
See Also:
Constant Field Values

SERVICE_SUFFIX

protected static final String SERVICE_SUFFIX
See Also:
Constant Field Values

EXCEPTION_SUFFIX

protected static final String EXCEPTION_SUFFIX
See Also:
Constant Field Values

JAXWS_PORT_TYPE_NAME

protected static final String JAXWS_PORT_TYPE_NAME
See Also:
Constant Field Values

JAXWS_IMPL_SUFFIX

protected static final String JAXWS_IMPL_SUFFIX
See Also:
Constant Field Values
Constructor Detail

JAXWSEmitter

public JAXWSEmitter()
Method Detail

setCodeGenConfiguration

public void setCodeGenConfiguration(CodeGenConfiguration configuration)
Description copied from class: AxisServiceBasedMultiLanguageEmitter
Sets the relevant codegen configuration

Specified by:
setCodeGenConfiguration in interface Emitter
Overrides:
setCodeGenConfiguration in class AxisServiceBasedMultiLanguageEmitter
See Also:
Emitter.setCodeGenConfiguration(org.apache.axis2.wsdl.codegen.CodeGenConfiguration)

emitSkeleton

public void emitSkeleton()
                  throws CodeGenerationException
Description copied from class: AxisServiceBasedMultiLanguageEmitter
Emits the skeleton

Specified by:
emitSkeleton in interface Emitter
Overrides:
emitSkeleton in class AxisServiceBasedMultiLanguageEmitter
Throws:
CodeGenerationException

writeServiceEndpointInterface

protected void writeServiceEndpointInterface()
                                      throws Exception
Write the service endpoint interface

Throws:
Exception

writeServiceEndpointInterfaceImpl

protected void writeServiceEndpointInterfaceImpl()
                                          throws Exception
Throws:
Exception

writeExceptions

protected void writeExceptions()
                        throws Exception
Writes the exception calsses.

Overrides:
writeExceptions in class AxisServiceBasedMultiLanguageEmitter
Throws:
Exception

writeServiceClass

protected void writeServiceClass()
                          throws Exception
Write the service class

Throws:
Exception

createDOMDocumentForServiceXML

protected Document createDOMDocumentForServiceXML()
Overrides:
createDOMDocumentForServiceXML in class AxisServiceBasedMultiLanguageEmitter

createDOMDocumentForSEI

protected abstract Document createDOMDocumentForSEI()
                                             throws AxisFault
Creates the XML model for the Service Endpoint interface

Returns:
DOM Document
Throws:
AxisFault

createDOMDocumentForSEIImpl

protected abstract Document createDOMDocumentForSEIImpl()
                                                 throws AxisFault
Creates the XML model for the Service Endpoint interface Implementation class

Returns:
DOM Document
Throws:
AxisFault

createDOMDocumentForServiceClass

protected abstract Document createDOMDocumentForServiceClass()
Creates the XML model for the Service Class

Returns:
DOM Document

createDOMDocumentForException

protected abstract Document createDOMDocumentForException(String key)
Creates the XML model for a Exception Class

Parameters:
key - String
Returns:
DOM Document

getServiceElement

protected Element getServiceElement(String serviceName,
                                    String className,
                                    Document doc)
A resusable method to return the service element for creating the service xml

Overrides:
getServiceElement in class AxisServiceBasedMultiLanguageEmitter
Parameters:
serviceName -
className -
doc -
Returns:
DOM Element

extratClassName

public String extratClassName(String fullyQualifiedName)

getFullyQualifiedName

protected String getFullyQualifiedName(String className,
                                       String packageName)

resolveNameCollision

protected String resolveNameCollision(String className,
                                      String packageName,
                                      String suffix)


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.