org.apache.axis2.wsdl.codegen.emitter
Class AxisServiceBasedMultiLanguageEmitter

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

public class AxisServiceBasedMultiLanguageEmitter
extends java.lang.Object
implements Emitter


Field Summary
protected  java.util.Map allServiceInfoHolder
           
protected  AxisBinding axisBinding
           
protected  AxisEndpoint axisEndpoint
           
protected  AxisService axisService
           
protected  java.util.List axisServices
           
protected static java.lang.String CALL_BACK_HANDLER_SUFFIX
           
protected  CodeGenConfiguration codeGenConfiguration
           
protected static java.util.HashMap constructorMap
          Field constructorMap
protected static java.lang.String DATABINDING_SUPPORTER_NAME_SUFFIX
           
protected  java.util.Map faultClassNameMap
           
protected  java.util.Map faultElementQNameMap
           
protected  java.util.Map fullyQualifiedFaultClassNameMap
           
protected  java.util.Map infoHolder
           
protected  java.util.Map instantiatableMessageClassNames
           
protected static org.apache.commons.logging.Log log
           
protected  TypeMapper mapper
           
protected static java.util.Map mepToClassMap
           
protected static java.util.Map mepToSuffixMap
           
protected static java.lang.String MESSAGE_RECEIVER_SUFFIX
           
protected  javax.xml.transform.URIResolver resolver
           
protected static java.lang.String SKELETON_CLASS_SUFFIX
           
protected static java.lang.String SKELETON_CLASS_SUFFIX_BACK
           
protected static java.lang.String SKELETON_INTERFACE_SUFFIX
           
protected static java.lang.String SKELETON_INTERFACE_SUFFIX_BACK
           
protected static java.lang.String STUB_INTERFACE_SUFFIX_BACK
           
protected static java.lang.String STUB_SUFFIX
           
protected static java.lang.String TEST_SRC_DIR_NAME
           
protected static java.lang.String TEST_SUFFIX
           
protected  int uniqueFaultNameCounter
           
protected  boolean useHolderClass_jaxws
           
protected  boolean wrapped_jaxws
           
 
Constructor Summary
AxisServiceBasedMultiLanguageEmitter()
          default constructor - builds
 
Method Summary
protected  void addAttribute(org.w3c.dom.Document document, java.lang.String AttribName, java.lang.String attribValue, org.w3c.dom.Element element)
          Utility method to add an attribute to a given element.
protected  org.w3c.dom.Element addElement(org.w3c.dom.Document document, java.lang.String eltName, java.lang.String eltValue, org.w3c.dom.Element element)
          Utility method to add an attribute to a given element.
protected  void addEndpoint(org.w3c.dom.Document doc, org.w3c.dom.Element rootElement)
          Adds the endpoint to the document.
protected  void addFaultMessages(java.util.List operationFaultMessages, java.util.Set faultMessagesToMep)
          add the qNames of the operation fault message names to faultMessages Mep
protected  void addHeaderOperations(java.util.List soapHeaderParameterQNameList, AxisBindingOperation bindingOperation, boolean input)
          populate the header parameters
protected  void addHeaderOperationsToFault(java.util.List soapHeaderParameterQNameList, AxisOperation axisOperation)
          populate the header parameters to faults
protected  void addShortType(org.w3c.dom.Element paramElement, java.lang.String xmlName)
          set the short type as it is in the data binding
protected  void addSOAPAction(org.w3c.dom.Document doc, org.w3c.dom.Element rootElement, QName qName)
          Adds the soap action
protected  void addSoapVersion(org.w3c.dom.Document doc, org.w3c.dom.Element rootElement)
          Looks for the SOAPVersion and adds it.
 void copyMap(java.util.Map copyFormMap, java.util.Map copyToMap)
           
protected  void copyToFaultMap()
          Utility method to copy the faults to the correct map
protected  org.w3c.dom.Document createDocumentForMessageReceiver(java.lang.String mep, boolean isServerSideInterface)
          Creates the XML model for the message receiver
protected  org.w3c.dom.Document createDOMDocumentForAntBuild()
          Creates the DOM tree for the Ant build.
protected  org.w3c.dom.Document createDOMDocumentForCallbackHandler()
          Generates the model for the callbacks.
protected  org.w3c.dom.Document createDOMDocumentForException()
          Generates the model for the callbacks.
protected  org.w3c.dom.Document createDOMDocumentForInterface(boolean writeDatabinders)
          Creates the DOM tree for the interface creation.
protected  org.w3c.dom.Document createDOMDocumentForInterfaceImplementation()
          Creates the DOM tree for implementations.
protected  org.w3c.dom.Document createDOMDocumentForServiceXML()
           
protected  org.w3c.dom.Document createDOMDocumentForSkeleton(boolean isSkeletonInterface)
          Creates the XMLModel for the skeleton
protected  org.w3c.dom.Document createDOMDocumentForSkeletonInterface()
          Creates the XML model for the skeleton interface
protected  org.w3c.dom.Document createDOMDocumentForTestCase()
          Creates the XML Model for the test case
protected  org.w3c.dom.Element createDOMElementforDatabinders(org.w3c.dom.Document doc, boolean isServerside)
          create a dom element for databinders.
protected  void debugLogDocument(java.lang.String description, org.w3c.dom.Document doc)
          debugging method - write the output to the debugger
 void emitSkeleton()
          Emits the skeleton
 void emitStub()
          Emits the stubcode with bindings.
protected  void fillSyncAttributes(org.w3c.dom.Document doc, org.w3c.dom.Element rootElement)
           
protected  void generateAndPopulateFaultNames()
          Populate a map of fault class names
protected  org.w3c.dom.Element generateMethodElement(org.w3c.dom.Document doc, java.lang.String endpointName, AxisBindingOperation bindingOperation)
          Common code to generate a element from an operation.
protected  org.w3c.dom.Element generateOptionParamComponent(org.w3c.dom.Document doc, java.lang.String name, java.lang.String value)
          A convenient method for the generating optionParam components
protected  org.w3c.dom.Element generateParamComponent(org.w3c.dom.Document doc, java.lang.String paramName, java.lang.String paramType, QName paramQName)
          A convenient method for the generating the parameter element
protected  org.w3c.dom.Element generateParamComponent(org.w3c.dom.Document doc, java.lang.String paramName, java.lang.String paramType, QName operationName, QName paramQName)
          A convenient method for the generating the parameter element
protected  org.w3c.dom.Element generateParamComponent(org.w3c.dom.Document doc, java.lang.String paramName, java.lang.String paramType, QName opName, QName paramQName, java.lang.String partName, boolean isPrimitive, boolean isArray)
          A convenient method for the generating the parameter element
protected  org.w3c.dom.Element getBase64Elements(org.w3c.dom.Document doc)
          Gets the base64 types.
protected  org.apache.neethi.Policy getBindingPolicyFromMessage(AxisBindingOperation axisBindingOperation, java.lang.String key)
           
protected  java.lang.Object getBindingPropertyFromMessage(java.lang.String name, QName qName, java.lang.String key)
           
protected  java.lang.Object getBindingPropertyFromMessageFault(java.lang.String name, QName qName, java.lang.String key)
           
protected  java.lang.Object getBindingPropertyFromOperation(java.lang.String name, QName qName)
           
protected  org.w3c.dom.Document getEmptyDocument()
           
protected  org.w3c.dom.Element getFaultElement(org.w3c.dom.Document doc, AxisOperation operation)
          Get the fault element - No header faults are supported
protected  org.w3c.dom.Element[] getFaultParamElements(org.w3c.dom.Document doc, AxisOperation operation)
           
protected  java.lang.String getFullyQualifiedMessageReceiverName()
           
protected  java.lang.String getFullyQualifiedSkeletonInterfaceName()
           
protected  java.lang.String getFullyQualifiedSkeletonName()
           
protected  java.lang.String getFullyQualifiedStubName()
          Returns the fully qualified Stub name reused in many methods
protected  org.w3c.dom.Element getInputElement(org.w3c.dom.Document doc, AxisBindingOperation bindingOperation, java.util.List headerParameterQNameList)
          Get the input element
protected  org.w3c.dom.Element[] getInputParamElement(org.w3c.dom.Document doc, AxisOperation operation)
           
 java.util.Map getNewCopy(java.util.Map copyFormMap)
           
protected  org.w3c.dom.Element getOpNames(org.w3c.dom.Document doc)
          Gets an element representing the operation names
protected  java.io.File getOutputDirectory(java.io.File outputDir, java.lang.String dir2)
          Gets the output directory for source files.
protected  org.w3c.dom.Element getOutputElement(org.w3c.dom.Document doc, AxisBindingOperation bindingOperation, java.util.List headerParameterQNameList)
          Finds the output element.
protected  org.w3c.dom.Element getOutputParamElement(org.w3c.dom.Document doc, AxisOperation operation)
           
protected  java.util.List getParameterElementList(org.w3c.dom.Document doc, java.util.List parameters, java.lang.String location)
           
protected  java.util.List getParameterElementListForHttpHeader(org.w3c.dom.Document doc, java.util.List parameters, java.lang.String location)
           
protected  java.util.List getParameterElementListForSOAPModules(org.w3c.dom.Document doc, java.util.List parameters)
           
protected  java.lang.String getParamInitializer(java.lang.String paramType)
           
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  org.w3c.dom.Element getUniqueListofFaults(org.w3c.dom.Document doc)
          A util method that returns a unique list of faults
protected  org.w3c.dom.Element getUniqueListofFaultsofMep(org.w3c.dom.Document doc, java.lang.String mep)
          A util method that returns a unique list of faults for a given mep
protected  boolean loadOperations(org.w3c.dom.Document doc, org.w3c.dom.Element rootElement, java.lang.String mep)
          Loads the operations
protected  java.lang.String makeJavaClassName(java.lang.String word)
           
protected  void processModelObjects(java.util.Map objectMappings, org.w3c.dom.Element root, org.w3c.dom.Document doc)
           
protected  void resetFaultNames()
          rests the fault name maps
 void setCodeGenConfiguration(CodeGenConfiguration configuration)
          Sets the relevant codegen configuration
 void setMapper(TypeMapper mapper)
          Sets the type mapper
protected  void updateFaultPackageForStub()
          Change the fault classnames to go with the package and stub
protected  void updateMapperClassnames(java.lang.String fullyQulifiedIncludingClassNamePrefix)
          we need to modify the mapper's class name list.
protected  void updateMapperForMessageReceiver()
          Update mapper for message receiver
protected  void updateMapperForStub()
          Update mapper for the stub
protected  void writeAntBuild()
          Writes the Ant build.
protected  void writeCallBackHandlers()
          Writes the callback handlers.
protected  void writeExceptions()
          Writes the exceptions.
protected  void writeFile(org.w3c.dom.Document model, FileWriter writer)
          A resusable method for the implementation of interface and implementation writing.
protected  void writeInterface(boolean writeDatabinders)
          Writes the interfaces.
protected  void writeInterfaceImplementation()
          Writes the implementations.
protected  void writeMessageReceiver()
          Writes the message receiver
protected  void writeServiceXml()
          Write the service XML
protected  void writeSkeleton()
           
protected  void writeSkeletonInterface()
          Write the skeletonInterface
protected  void writeTestClasses()
          Write the test classes
protected  void writeWSDLFiles()
          Write out the WSDL files (and the schemas) writing the WSDL (and schemas) is somewhat special so we cannot follow the usual pattern of using the class writer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CALL_BACK_HANDLER_SUFFIX

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

STUB_SUFFIX

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

TEST_SUFFIX

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

SKELETON_CLASS_SUFFIX

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

SKELETON_CLASS_SUFFIX_BACK

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

SKELETON_INTERFACE_SUFFIX

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

SKELETON_INTERFACE_SUFFIX_BACK

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

STUB_INTERFACE_SUFFIX_BACK

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

MESSAGE_RECEIVER_SUFFIX

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

DATABINDING_SUPPORTER_NAME_SUFFIX

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

mepToClassMap

protected static java.util.Map mepToClassMap

mepToSuffixMap

protected static java.util.Map mepToSuffixMap

axisBinding

protected AxisBinding axisBinding

axisEndpoint

protected AxisEndpoint axisEndpoint

uniqueFaultNameCounter

protected int uniqueFaultNameCounter

constructorMap

protected static java.util.HashMap constructorMap
Field constructorMap


log

protected static final org.apache.commons.logging.Log log

resolver

protected javax.xml.transform.URIResolver resolver

infoHolder

protected java.util.Map infoHolder

allServiceInfoHolder

protected java.util.Map allServiceInfoHolder

codeGenConfiguration

protected CodeGenConfiguration codeGenConfiguration

mapper

protected TypeMapper mapper

axisService

protected AxisService axisService

axisServices

protected java.util.List axisServices

fullyQualifiedFaultClassNameMap

protected java.util.Map fullyQualifiedFaultClassNameMap

faultClassNameMap

protected java.util.Map faultClassNameMap

faultElementQNameMap

protected java.util.Map faultElementQNameMap

instantiatableMessageClassNames

protected java.util.Map instantiatableMessageClassNames

TEST_SRC_DIR_NAME

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

useHolderClass_jaxws

protected boolean useHolderClass_jaxws

wrapped_jaxws

protected boolean wrapped_jaxws
Constructor Detail

AxisServiceBasedMultiLanguageEmitter

public AxisServiceBasedMultiLanguageEmitter()
default constructor - builds

Method Detail

setCodeGenConfiguration

public void setCodeGenConfiguration(CodeGenConfiguration configuration)
Sets the relevant codegen configuration

Specified by:
setCodeGenConfiguration in interface Emitter
Parameters:
configuration -
See Also:
Emitter.setCodeGenConfiguration(org.apache.axis2.wsdl.codegen.CodeGenConfiguration)

setMapper

public void setMapper(TypeMapper mapper)
Sets the type mapper

Specified by:
setMapper in interface Emitter
Parameters:
mapper -
See Also:
Emitter.setMapper(org.apache.axis2.wsdl.databinding.TypeMapper)

getBindingPropertyFromOperation

protected java.lang.Object getBindingPropertyFromOperation(java.lang.String name,
                                                           QName qName)

getBindingPolicyFromMessage

protected org.apache.neethi.Policy getBindingPolicyFromMessage(AxisBindingOperation axisBindingOperation,
                                                               java.lang.String key)

getBindingPropertyFromMessage

protected java.lang.Object getBindingPropertyFromMessage(java.lang.String name,
                                                         QName qName,
                                                         java.lang.String key)

getBindingPropertyFromMessageFault

protected java.lang.Object getBindingPropertyFromMessageFault(java.lang.String name,
                                                              QName qName,
                                                              java.lang.String key)

updateMapperForStub

protected void updateMapperForStub()
Update mapper for the stub


getFullyQualifiedStubName

protected java.lang.String getFullyQualifiedStubName()
Returns the fully qualified Stub name reused in many methods

Returns:
classname

resetFaultNames

protected void resetFaultNames()
rests the fault name maps


generateAndPopulateFaultNames

protected void generateAndPopulateFaultNames()
Populate a map of fault class names


emitStub

public void emitStub()
              throws CodeGenerationException
Emits the stubcode with bindings.

Specified by:
emitStub in interface Emitter
Throws:
CodeGenerationException
See Also:
Emitter.emitStub()

getNewCopy

public java.util.Map getNewCopy(java.util.Map copyFormMap)

copyMap

public void copyMap(java.util.Map copyFormMap,
                    java.util.Map copyToMap)

writeAntBuild

protected void writeAntBuild()
                      throws java.lang.Exception
Writes the Ant build.

Throws:
java.lang.Exception

createDOMDocumentForAntBuild

protected org.w3c.dom.Document createDOMDocumentForAntBuild()
Creates the DOM tree for the Ant build. Uses the interface.


writeTestClasses

protected void writeTestClasses()
                         throws java.lang.Exception
Write the test classes

Throws:
java.lang.Exception

createDOMDocumentForTestCase

protected org.w3c.dom.Document createDOMDocumentForTestCase()
Creates the XML Model for the test case

Returns:
DOM document

writeInterfaceImplementation

protected void writeInterfaceImplementation()
                                     throws java.lang.Exception
Writes the implementations.

Throws:
java.lang.Exception

createDOMDocumentForInterfaceImplementation

protected org.w3c.dom.Document createDOMDocumentForInterfaceImplementation()
                                                                    throws java.lang.Exception
Creates the DOM tree for implementations.

Throws:
java.lang.Exception

getUniqueListofFaults

protected org.w3c.dom.Element getUniqueListofFaults(org.w3c.dom.Document doc)
A util method that returns a unique list of faults

Parameters:
doc -
Returns:
DOM element

addFaultMessages

protected void addFaultMessages(java.util.List operationFaultMessages,
                                java.util.Set faultMessagesToMep)
add the qNames of the operation fault message names to faultMessages Mep

Parameters:
operationFaultMessages -
faultMessagesToMep -

getUniqueListofFaultsofMep

protected org.w3c.dom.Element getUniqueListofFaultsofMep(org.w3c.dom.Document doc,
                                                         java.lang.String mep)
A util method that returns a unique list of faults for a given mep

Parameters:
doc -
Returns:
DOM element

addEndpoint

protected void addEndpoint(org.w3c.dom.Document doc,
                           org.w3c.dom.Element rootElement)
                    throws java.lang.Exception
Adds the endpoint to the document.

Parameters:
doc -
rootElement -
Throws:
java.lang.Exception

addSoapVersion

protected void addSoapVersion(org.w3c.dom.Document doc,
                              org.w3c.dom.Element rootElement)
Looks for the SOAPVersion and adds it.

Parameters:
doc -
rootElement -

writeExceptions

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

Throws:
java.lang.Exception

createDOMDocumentForException

protected org.w3c.dom.Document createDOMDocumentForException()
Generates the model for the callbacks.


writeCallBackHandlers

protected void writeCallBackHandlers()
                              throws java.lang.Exception
Writes the callback handlers.

Throws:
java.lang.Exception

createDOMDocumentForCallbackHandler

protected org.w3c.dom.Document createDOMDocumentForCallbackHandler()
Generates the model for the callbacks.


writeInterface

protected void writeInterface(boolean writeDatabinders)
                       throws java.lang.Exception
Writes the interfaces.

Throws:
java.lang.Exception

createDOMDocumentForInterface

protected org.w3c.dom.Document createDOMDocumentForInterface(boolean writeDatabinders)
Creates the DOM tree for the interface creation. Uses the interface.


updateMapperForMessageReceiver

protected void updateMapperForMessageReceiver()
Update mapper for message receiver


getFullyQualifiedMessageReceiverName

protected java.lang.String getFullyQualifiedMessageReceiverName()
Returns:
fully qualified MR name

getFullyQualifiedSkeletonName

protected java.lang.String getFullyQualifiedSkeletonName()
Returns:
fully qualified skeleton name

getFullyQualifiedSkeletonInterfaceName

protected java.lang.String getFullyQualifiedSkeletonInterfaceName()
Returns:
fully qualified skeleton interface name

emitSkeleton

public void emitSkeleton()
                  throws CodeGenerationException
Emits the skeleton

Specified by:
emitSkeleton in interface Emitter
Throws:
CodeGenerationException

writeWSDLFiles

protected void writeWSDLFiles()
Write out the WSDL files (and the schemas) writing the WSDL (and schemas) is somewhat special so we cannot follow the usual pattern of using the class writer


copyToFaultMap

protected void copyToFaultMap()
Utility method to copy the faults to the correct map


updateFaultPackageForStub

protected void updateFaultPackageForStub()
Change the fault classnames to go with the package and stub


writeMessageReceiver

protected void writeMessageReceiver()
                             throws java.lang.Exception
Writes the message receiver

Throws:
java.lang.Exception

createDocumentForMessageReceiver

protected org.w3c.dom.Document createDocumentForMessageReceiver(java.lang.String mep,
                                                                boolean isServerSideInterface)
Creates the XML model for the message receiver

Parameters:
mep -
isServerSideInterface -
Returns:
DOM Document

createDOMElementforDatabinders

protected org.w3c.dom.Element createDOMElementforDatabinders(org.w3c.dom.Document doc,
                                                             boolean isServerside)
create a dom element for databinders. This is called by other

Parameters:
doc -

addShortType

protected void addShortType(org.w3c.dom.Element paramElement,
                            java.lang.String xmlName)
set the short type as it is in the data binding

Parameters:
paramElement -
xmlName -

getOpNames

protected org.w3c.dom.Element getOpNames(org.w3c.dom.Document doc)
Gets an element representing the operation names

Parameters:
doc -
Returns:
Returns Element.

getBase64Elements

protected org.w3c.dom.Element getBase64Elements(org.w3c.dom.Document doc)
Gets the base64 types. If not available this will be empty!!!

Parameters:
doc -
Returns:
Returns Element.

processModelObjects

protected void processModelObjects(java.util.Map objectMappings,
                                   org.w3c.dom.Element root,
                                   org.w3c.dom.Document doc)
Parameters:
objectMappings -
root -
doc -

updateMapperClassnames

protected void updateMapperClassnames(java.lang.String fullyQulifiedIncludingClassNamePrefix)
we need to modify the mapper's class name list. The issue here is that in this case we do not expect the fully qulified class names to be present in the class names list due to the simple reason that they've not been written yet! Hence the mappers class name list needs to be updated to suit the expected package to be written in this case we modify the package name to have the class a inner class of the stub, interface or the message receiver depending on the style


writeServiceXml

protected void writeServiceXml()
                        throws java.lang.Exception
Write the service XML

Throws:
java.lang.Exception

createDOMDocumentForServiceXML

protected org.w3c.dom.Document createDOMDocumentForServiceXML()

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

Parameters:
serviceName -
className -
doc -
Returns:
DOM Element

writeSkeleton

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

writeSkeletonInterface

protected void writeSkeletonInterface()
                               throws java.lang.Exception
Write the skeletonInterface

Throws:
java.lang.Exception

createDOMDocumentForSkeleton

protected org.w3c.dom.Document createDOMDocumentForSkeleton(boolean isSkeletonInterface)
Creates the XMLModel for the skeleton

Parameters:
isSkeletonInterface -
Returns:
DOM Document

createDOMDocumentForSkeletonInterface

protected org.w3c.dom.Document createDOMDocumentForSkeletonInterface()
Creates the XML model for the skeleton interface

Returns:
DOM Document

loadOperations

protected boolean loadOperations(org.w3c.dom.Document doc,
                                 org.w3c.dom.Element rootElement,
                                 java.lang.String mep)
Loads the operations

Parameters:
doc -
rootElement -
mep -
Returns:
boolean

generateMethodElement

protected org.w3c.dom.Element generateMethodElement(org.w3c.dom.Document doc,
                                                    java.lang.String endpointName,
                                                    AxisBindingOperation bindingOperation)
                                             throws org.w3c.dom.DOMException
Common code to generate a element from an operation.

Parameters:
doc -
endpointName -
bindingOperation -
Returns:
generated element
Throws:
org.w3c.dom.DOMException

getEmptyDocument

protected org.w3c.dom.Document getEmptyDocument()

makeJavaClassName

protected java.lang.String makeJavaClassName(java.lang.String word)
Parameters:
word -
Returns:
Returns character removed string.

addAttribute

protected void addAttribute(org.w3c.dom.Document document,
                            java.lang.String AttribName,
                            java.lang.String attribValue,
                            org.w3c.dom.Element element)
Utility method to add an attribute to a given element.

Parameters:
document -
AttribName -
attribValue -
element -

fillSyncAttributes

protected void fillSyncAttributes(org.w3c.dom.Document doc,
                                  org.w3c.dom.Element rootElement)
Parameters:
doc -
rootElement -

debugLogDocument

protected void debugLogDocument(java.lang.String description,
                                org.w3c.dom.Document doc)
debugging method - write the output to the debugger

Parameters:
description -
doc -

getOutputDirectory

protected java.io.File getOutputDirectory(java.io.File outputDir,
                                          java.lang.String dir2)
Gets the output directory for source files.

Parameters:
outputDir -
Returns:
Returns File.

writeFile

protected void writeFile(org.w3c.dom.Document model,
                         FileWriter writer)
                  throws java.io.IOException,
                         java.lang.Exception
A resusable method for the implementation of interface and implementation writing.

Parameters:
model -
writer -
Throws:
java.io.IOException
java.lang.Exception

addSOAPAction

protected void addSOAPAction(org.w3c.dom.Document doc,
                             org.w3c.dom.Element rootElement,
                             QName qName)
Adds the soap action

Parameters:
doc -
rootElement -
qName -

addHeaderOperations

protected void addHeaderOperations(java.util.List soapHeaderParameterQNameList,
                                   AxisBindingOperation bindingOperation,
                                   boolean input)
populate the header parameters

Parameters:
soapHeaderParameterQNameList -
bindingOperation -
input -

addHeaderOperationsToFault

protected void addHeaderOperationsToFault(java.util.List soapHeaderParameterQNameList,
                                          AxisOperation axisOperation)
populate the header parameters to faults

Parameters:
soapHeaderParameterQNameList -
axisOperation -

getInputElement

protected org.w3c.dom.Element getInputElement(org.w3c.dom.Document doc,
                                              AxisBindingOperation bindingOperation,
                                              java.util.List headerParameterQNameList)
Get the input element

Parameters:
doc -
bindingOperation -
headerParameterQNameList -
Returns:
DOM element

getFaultElement

protected org.w3c.dom.Element getFaultElement(org.w3c.dom.Document doc,
                                              AxisOperation operation)
Get the fault element - No header faults are supported

Parameters:
doc -
operation -

getOutputElement

protected org.w3c.dom.Element getOutputElement(org.w3c.dom.Document doc,
                                               AxisBindingOperation bindingOperation,
                                               java.util.List headerParameterQNameList)
Finds the output element.

Parameters:
doc -
bindingOperation -
headerParameterQNameList -

getFaultParamElements

protected org.w3c.dom.Element[] getFaultParamElements(org.w3c.dom.Document doc,
                                                      AxisOperation operation)
Parameters:
doc -
operation -
Returns:
Returns the parameter element.

getInputParamElement

protected org.w3c.dom.Element[] getInputParamElement(org.w3c.dom.Document doc,
                                                     AxisOperation operation)
Parameters:
doc -
operation -
Returns:
Returns the parameter element.

generateParamComponent

protected org.w3c.dom.Element generateParamComponent(org.w3c.dom.Document doc,
                                                     java.lang.String paramName,
                                                     java.lang.String paramType,
                                                     QName operationName,
                                                     QName paramQName)
A convenient method for the generating the parameter element

Parameters:
doc -
paramName -
paramType -
Returns:
DOM Element

generateParamComponent

protected org.w3c.dom.Element generateParamComponent(org.w3c.dom.Document doc,
                                                     java.lang.String paramName,
                                                     java.lang.String paramType,
                                                     QName paramQName)
A convenient method for the generating the parameter element

Parameters:
doc -
paramName -
paramType -
Returns:
DOM Element

generateOptionParamComponent

protected org.w3c.dom.Element generateOptionParamComponent(org.w3c.dom.Document doc,
                                                           java.lang.String name,
                                                           java.lang.String value)
A convenient method for the generating optionParam components

Parameters:
doc -
name -
value -
Returns:
Element

generateParamComponent

protected org.w3c.dom.Element generateParamComponent(org.w3c.dom.Document doc,
                                                     java.lang.String paramName,
                                                     java.lang.String paramType,
                                                     QName opName,
                                                     QName paramQName,
                                                     java.lang.String partName,
                                                     boolean isPrimitive,
                                                     boolean isArray)
A convenient method for the generating the parameter element

Parameters:
doc -
paramName -
paramType -
opName -
paramName -

getOutputParamElement

protected org.w3c.dom.Element getOutputParamElement(org.w3c.dom.Document doc,
                                                    AxisOperation operation)
Parameters:
doc -
operation -
Returns:
Returns Element.

getParamInitializer

protected java.lang.String getParamInitializer(java.lang.String paramType)
Parameters:
paramType -

getParameterElementList

protected java.util.List getParameterElementList(org.w3c.dom.Document doc,
                                                 java.util.List parameters,
                                                 java.lang.String location)
Parameters:
doc -
parameters -
location -

getParameterElementListForHttpHeader

protected java.util.List getParameterElementListForHttpHeader(org.w3c.dom.Document doc,
                                                              java.util.List parameters,
                                                              java.lang.String location)

getParameterElementListForSOAPModules

protected java.util.List getParameterElementListForSOAPModules(org.w3c.dom.Document doc,
                                                               java.util.List parameters)

addElement

protected org.w3c.dom.Element addElement(org.w3c.dom.Document document,
                                         java.lang.String eltName,
                                         java.lang.String eltValue,
                                         org.w3c.dom.Element element)
Utility method to add an attribute to a given element.

Parameters:
document -
eltName -
eltValue -
element -


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