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 java.lang.String EXCEPTION_SUFFIX
           
protected static java.lang.String JAXWS_IMPL_SUFFIX
           
protected static java.lang.String JAXWS_PORT_TYPE_NAME
           
protected static java.lang.String SERVICE_SUFFIX
           
protected static java.lang.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  org.w3c.dom.Document createDOMDocumentForException(java.lang.String key)
          Creates the XML model for a Exception Class
protected abstract  org.w3c.dom.Document createDOMDocumentForSEI()
          Creates the XML model for the Service Endpoint interface
protected abstract  org.w3c.dom.Document createDOMDocumentForSEIImpl()
          Creates the XML model for the Service Endpoint interface Implementation class
protected abstract  org.w3c.dom.Document createDOMDocumentForServiceClass()
          Creates the XML model for the Service Class
protected  org.w3c.dom.Document createDOMDocumentForServiceXML()
           
 void emitSkeleton()
          Emits the skeleton
 java.lang.String extratClassName(java.lang.String fullyQualifiedName)
           
protected  java.lang.String getFullyQualifiedName(java.lang.String className, java.lang.String packageName)
           
protected  org.w3c.dom.Element getServiceElement(java.lang.String serviceName, java.lang.String className, org.w3c.dom.Document doc)
          A resusable method to return the service element for creating the service xml
protected  java.lang.String resolveNameCollision(java.lang.String className, java.lang.String packageName, java.lang.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 java.lang.String TYPE_SUFFIX
See Also:
Constant Field Values

SERVICE_SUFFIX

protected static final java.lang.String SERVICE_SUFFIX
See Also:
Constant Field Values

EXCEPTION_SUFFIX

protected static final java.lang.String EXCEPTION_SUFFIX
See Also:
Constant Field Values

JAXWS_PORT_TYPE_NAME

protected static final java.lang.String JAXWS_PORT_TYPE_NAME
See Also:
Constant Field Values

JAXWS_IMPL_SUFFIX

protected static final java.lang.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 java.lang.Exception
Write the service endpoint interface

Throws:
java.lang.Exception

writeServiceEndpointInterfaceImpl

protected void writeServiceEndpointInterfaceImpl()
                                          throws java.lang.Exception
Throws:
java.lang.Exception

writeExceptions

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

Overrides:
writeExceptions in class AxisServiceBasedMultiLanguageEmitter
Throws:
java.lang.Exception

writeServiceClass

protected void writeServiceClass()
                          throws java.lang.Exception
Write the service class

Throws:
java.lang.Exception

createDOMDocumentForServiceXML

protected org.w3c.dom.Document createDOMDocumentForServiceXML()
Overrides:
createDOMDocumentForServiceXML in class AxisServiceBasedMultiLanguageEmitter

createDOMDocumentForSEI

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

Returns:
DOM Document
Throws:
AxisFault

createDOMDocumentForSEIImpl

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

Returns:
DOM Document
Throws:
AxisFault

createDOMDocumentForServiceClass

protected abstract org.w3c.dom.Document createDOMDocumentForServiceClass()
Creates the XML model for the Service Class

Returns:
DOM Document

createDOMDocumentForException

protected abstract org.w3c.dom.Document createDOMDocumentForException(java.lang.String key)
Creates the XML model for a Exception Class

Parameters:
key - String
Returns:
DOM Document

getServiceElement

protected org.w3c.dom.Element getServiceElement(java.lang.String serviceName,
                                                java.lang.String className,
                                                org.w3c.dom.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 java.lang.String extratClassName(java.lang.String fullyQualifiedName)

getFullyQualifiedName

protected java.lang.String getFullyQualifiedName(java.lang.String className,
                                                 java.lang.String packageName)

resolveNameCollision

protected java.lang.String resolveNameCollision(java.lang.String className,
                                                java.lang.String packageName,
                                                java.lang.String suffix)


Copyright © 2007 Apache Web Services Project. All Rights Reserved.