| java.lang.Object org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter
All known Subclasses: org.apache.axis2.wsdl.codegen.emitter.JavaEmitter, org.apache.axis2.wsdl.codegen.emitter.CEmitter,
AxisServiceBasedMultiLanguageEmitter | public class AxisServiceBasedMultiLanguageEmitter implements Emitter(Code) | | |
Method Summary | |
protected void | addAttribute(Document document, String AttribName, String attribValue, Element element) Utility method to add an attribute to a given element. | protected Element | addElement(Document document, String eltName, String eltValue, Element element) Utility method to add an attribute to a given element. | protected void | addEndpoint(Document doc, Element rootElement) Adds the endpoint to the document. | protected void | addHeaderOperations(List soapHeaderParameterQNameList, AxisOperation axisOperation, boolean input) | protected void | addHeaderOperationsToFault(List soapHeaderParameterQNameList, AxisOperation axisOperation) | protected void | addSOAPAction(Document doc, Element rootElement, QName qName) | protected void | addShortType(Element paramElement, String xmlName) | protected void | addSoapVersion(Document doc, Element rootElement) Looks for the SOAPVersion and adds it. | protected void | copyToFaultMap() | protected Document | createDOMDocumentForAntBuild() Creates the DOM tree for the Ant build. | protected Document | createDOMDocumentForCallbackHandler() Generates the model for the callbacks. | protected Document | createDOMDocumentForException() Generates the model for the callbacks. | protected Document | createDOMDocumentForInterface(boolean writeDatabinders) Creates the DOM tree for the interface creation. | protected Document | createDOMDocumentForInterfaceImplementation() Creates the DOM tree for implementations. | protected Document | createDOMDocumentForServiceXML() | protected Document | createDOMDocumentForSkeleton(boolean isSkeletonInterface) | protected Document | createDOMDocumentForSkeletonInterface() | protected Document | createDOMDocumentForTestCase() | protected Element | createDOMElementforDatabinders(Document doc, boolean isServerside) create a dom element for databinders. | protected Document | createDocumentForMessageReceiver(String mep, boolean isServerSideInterface) | protected void | debugLogDocument(String description, Document doc) | public void | emitSkeleton() | public void | emitStub() Emits the stubcode with bindings. | protected void | fillSyncAttributes(Document doc, Element rootElement) | protected void | generateAndPopulateFaultNames() | protected Element | generateOptionParamComponent(Document doc, String name, String value) | protected Element | generateParamComponent(Document doc, String paramName, String paramType, QName operationName, QName paramQName) | protected Element | generateParamComponent(Document doc, String paramName, String paramType, QName paramQName) | protected Element | generateParamComponent(Document doc, String paramName, String paramType, QName opName, QName paramQName, String partName, boolean isPrimitive, boolean isArray) | protected Element | getBase64Elements(Document doc) Gets the base64 types. | protected Document | getEmptyDocument() | protected Element | getFaultElement(Document doc, AxisOperation operation) | protected Element[] | getFaultParamElements(Document doc, AxisOperation operation) | protected String | getFullyQualifiedMessageReceiverName() | protected String | getFullyQualifiedSkeletonInterfaceName() | protected String | getFullyQualifiedSkeletonName() | protected String | getFullyQualifiedStubName() | protected Element | getInputElement(Document doc, AxisOperation operation, List headerParameterQNameList) | protected Element[] | getInputParamElement(Document doc, AxisOperation operation) | protected Element | getOpNames(Document doc) | protected File | getOutputDirectory(File outputDir, String dir2) Gets the output directory for source files. | protected Element | getOutputElement(Document doc, AxisOperation operation, List headerParameterQNameList) Finds the output element. | protected Element | getOutputParamElement(Document doc, AxisOperation operation) | protected String | getParamInitializer(String paramType) | protected List | getParameterElementList(Document doc, List parameters, String location) | protected List | getParameterElementListForHttpHeader(Document doc, List parameters, String location) | protected List | getParameterElementListForSOAPModules(Document doc, List parameters) | protected Element | getServiceElement(String serviceName, String className, Document doc) | protected Element | getUniqueListofFaults(Document doc) | protected Element | getUniqueListofFaultsofMep(Document doc, String mep) | protected boolean | loadOperations(Document doc, Element rootElement, String mep) | protected String | makeJavaClassName(String word) | protected void | processModelObjects(Map objectMappings, Element root, Document doc) | protected void | resetFaultNames() | public void | setCodeGenConfiguration(CodeGenConfiguration configuration) | public void | setMapper(TypeMapper mapper) | protected void | updateFaultPackageForStub() | protected void | updateMapperClassnames(String fullyQulifiedIncludingClassNamePrefix) we need to modify the mapper's class name list. | protected void | updateMapperForMessageReceiver() | protected void | updateMapperForStub() | protected void | writeAntBuild() Writes the Ant build. | protected void | writeCallBackHandlers() Writes the callback handlers. | protected void | writeExceptions() Writes the exceptions. | protected void | writeFile(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() | protected void | writeServiceXml() | protected void | writeSkeleton() | protected void | writeSkeletonInterface() | protected void | writeTestClasses() | protected void | writeWSDLFiles() |
CALL_BACK_HANDLER_SUFFIX | final protected static String CALL_BACK_HANDLER_SUFFIX(Code) | | |
DATABINDING_SUPPORTER_NAME_SUFFIX | final protected static String DATABINDING_SUPPORTER_NAME_SUFFIX(Code) | | |
MESSAGE_RECEIVER_SUFFIX | final protected static String MESSAGE_RECEIVER_SUFFIX(Code) | | |
SKELETON_CLASS_SUFFIX | final protected static String SKELETON_CLASS_SUFFIX(Code) | | |
SKELETON_CLASS_SUFFIX_BACK | final protected static String SKELETON_CLASS_SUFFIX_BACK(Code) | | |
SKELETON_INTERFACE_SUFFIX | final protected static String SKELETON_INTERFACE_SUFFIX(Code) | | |
SKELETON_INTERFACE_SUFFIX_BACK | final protected static String SKELETON_INTERFACE_SUFFIX_BACK(Code) | | |
STUB_INTERFACE_SUFFIX_BACK | final protected static String STUB_INTERFACE_SUFFIX_BACK(Code) | | |
TEST_SRC_DIR_NAME | final protected static String TEST_SRC_DIR_NAME(Code) | | |
allServiceInfoHolder | protected Map allServiceInfoHolder(Code) | | |
axisBinding | protected AxisBinding axisBinding(Code) | | |
axisEndpoint | protected AxisEndpoint axisEndpoint(Code) | | |
axisService | protected AxisService axisService(Code) | | |
constructorMap | protected static HashMap constructorMap(Code) | | Field constructorMap
|
faultClassNameMap | protected Map faultClassNameMap(Code) | | |
faultElementQNameMap | protected Map faultElementQNameMap(Code) | | |
fullyQualifiedFaultClassNameMap | protected Map fullyQualifiedFaultClassNameMap(Code) | | |
instantiatableMessageClassNames | protected Map instantiatableMessageClassNames(Code) | | |
log | final protected static Log log(Code) | | |
mepToClassMap | protected static Map mepToClassMap(Code) | | |
mepToSuffixMap | protected static Map mepToSuffixMap(Code) | | |
uniqueFaultNameCounter | protected int uniqueFaultNameCounter(Code) | | |
AxisServiceBasedMultiLanguageEmitter | public AxisServiceBasedMultiLanguageEmitter()(Code) | | default constructor - builds
|
addAttribute | protected void addAttribute(Document document, String AttribName, String attribValue, Element element)(Code) | | Utility method to add an attribute to a given element.
Parameters: document - Parameters: AttribName - Parameters: attribValue - Parameters: element - |
addElement | protected Element addElement(Document document, String eltName, String eltValue, Element element)(Code) | | Utility method to add an attribute to a given element.
Parameters: document - Parameters: eltName - Parameters: eltValue - Parameters: element - |
addEndpoint | protected void addEndpoint(Document doc, Element rootElement) throws Exception(Code) | | Adds the endpoint to the document.
Parameters: doc - Parameters: rootElement - |
addHeaderOperations | protected void addHeaderOperations(List soapHeaderParameterQNameList, AxisOperation axisOperation, boolean input)(Code) | | populate the header parameters
Parameters: soapHeaderParameterQNameList - Parameters: axisOperation - Parameters: input - |
addHeaderOperationsToFault | protected void addHeaderOperationsToFault(List soapHeaderParameterQNameList, AxisOperation axisOperation)(Code) | | populate the header parameters to faults
Parameters: soapHeaderParameterQNameList - Parameters: axisOperation - |
addSOAPAction | protected void addSOAPAction(Document doc, Element rootElement, QName qName)(Code) | | Adds the soap action
Parameters: doc - Parameters: rootElement - Parameters: qName - |
addShortType | protected void addShortType(Element paramElement, String xmlName)(Code) | | set the short type as it is in the data binding
Parameters: paramElement - Parameters: xmlName - |
addSoapVersion | protected void addSoapVersion(Document doc, Element rootElement)(Code) | | Looks for the SOAPVersion and adds it.
Parameters: doc - Parameters: rootElement - |
copyToFaultMap | protected void copyToFaultMap()(Code) | | Utility method to copy the faults to the correct map
|
createDOMDocumentForAntBuild | protected Document createDOMDocumentForAntBuild()(Code) | | Creates the DOM tree for the Ant build. Uses the interface.
|
createDOMDocumentForCallbackHandler | protected Document createDOMDocumentForCallbackHandler()(Code) | | Generates the model for the callbacks.
|
createDOMDocumentForException | protected Document createDOMDocumentForException()(Code) | | Generates the model for the callbacks.
|
createDOMDocumentForInterface | protected Document createDOMDocumentForInterface(boolean writeDatabinders)(Code) | | Creates the DOM tree for the interface creation. Uses the interface.
|
createDOMDocumentForInterfaceImplementation | protected Document createDOMDocumentForInterfaceImplementation() throws Exception(Code) | | Creates the DOM tree for implementations.
|
createDOMDocumentForServiceXML | protected Document createDOMDocumentForServiceXML()(Code) | | |
createDOMDocumentForSkeleton | protected Document createDOMDocumentForSkeleton(boolean isSkeletonInterface)(Code) | | Creates the XMLModel for the skeleton
Parameters: isSkeletonInterface - DOM Document |
createDOMDocumentForSkeletonInterface | protected Document createDOMDocumentForSkeletonInterface()(Code) | | Creates the XML model for the skeleton interface
DOM Document |
createDOMDocumentForTestCase | protected Document createDOMDocumentForTestCase()(Code) | | Creates the XML Model for the test case
DOM document |
createDOMElementforDatabinders | protected Element createDOMElementforDatabinders(Document doc, boolean isServerside)(Code) | | create a dom element for databinders. This is called by other
Parameters: doc - |
createDocumentForMessageReceiver | protected Document createDocumentForMessageReceiver(String mep, boolean isServerSideInterface)(Code) | | Creates the XML model for the message receiver
Parameters: mep - Parameters: isServerSideInterface - DOM Document |
debugLogDocument | protected void debugLogDocument(String description, Document doc)(Code) | | debugging method - write the output to the debugger
Parameters: description - Parameters: doc - |
fillSyncAttributes | protected void fillSyncAttributes(Document doc, Element rootElement)(Code) | | Parameters: doc - Parameters: rootElement - |
generateAndPopulateFaultNames | protected void generateAndPopulateFaultNames()(Code) | | Populate a map of fault class names
|
generateOptionParamComponent | protected Element generateOptionParamComponent(Document doc, String name, String value)(Code) | | A convenient method for the generating optionParam components
Parameters: doc - Parameters: name - Parameters: value - Element |
generateParamComponent | protected Element generateParamComponent(Document doc, String paramName, String paramType, QName operationName, QName paramQName)(Code) | | A convenient method for the generating the parameter element
Parameters: doc - Parameters: paramName - Parameters: paramType - DOM Element |
generateParamComponent | protected Element generateParamComponent(Document doc, String paramName, String paramType, QName paramQName)(Code) | | A convenient method for the generating the parameter element
Parameters: doc - Parameters: paramName - Parameters: paramType - DOM Element |
generateParamComponent | protected Element generateParamComponent(Document doc, String paramName, String paramType, QName opName, QName paramQName, String partName, boolean isPrimitive, boolean isArray)(Code) | | A convenient method for the generating the parameter element
Parameters: doc - Parameters: paramName - Parameters: paramType - Parameters: opName - Parameters: paramName - |
getBase64Elements | protected Element getBase64Elements(Document doc)(Code) | | Gets the base64 types. If not available this will be empty!!!
Parameters: doc - Returns Element. |
getFaultElement | protected Element getFaultElement(Document doc, AxisOperation operation)(Code) | | Get the fault element - No header faults are supported
Parameters: doc - Parameters: operation - |
getFaultParamElements | protected Element[] getFaultParamElements(Document doc, AxisOperation operation)(Code) | | Parameters: doc - Parameters: operation - Returns the parameter element. |
getFullyQualifiedMessageReceiverName | protected String getFullyQualifiedMessageReceiverName()(Code) | | fully qualified MR name |
getFullyQualifiedSkeletonInterfaceName | protected String getFullyQualifiedSkeletonInterfaceName()(Code) | | fully qualified skeleton interface name |
getFullyQualifiedSkeletonName | protected String getFullyQualifiedSkeletonName()(Code) | | fully qualified skeleton name |
getFullyQualifiedStubName | protected String getFullyQualifiedStubName()(Code) | | Returns the fully qualified Stub name reused in many methods
classname |
getInputElement | protected Element getInputElement(Document doc, AxisOperation operation, List headerParameterQNameList)(Code) | | Get the input element
Parameters: doc - Parameters: operation - Parameters: headerParameterQNameList - DOM element |
getInputParamElement | protected Element[] getInputParamElement(Document doc, AxisOperation operation)(Code) | | Parameters: doc - Parameters: operation - Returns the parameter element. |
getOpNames | protected Element getOpNames(Document doc)(Code) | | Gets an element representing the operation names
Parameters: doc - Returns Element. |
getOutputDirectory | protected File getOutputDirectory(File outputDir, String dir2)(Code) | | Gets the output directory for source files.
Parameters: outputDir - Returns File. |
getOutputElement | protected Element getOutputElement(Document doc, AxisOperation operation, List headerParameterQNameList)(Code) | | Finds the output element.
Parameters: doc - Parameters: operation - Parameters: headerParameterQNameList - |
getOutputParamElement | protected Element getOutputParamElement(Document doc, AxisOperation operation)(Code) | | Parameters: doc - Parameters: operation - Returns Element. |
getParamInitializer | protected String getParamInitializer(String paramType)(Code) | | Parameters: paramType - |
getParameterElementList | protected List getParameterElementList(Document doc, List parameters, String location)(Code) | | Parameters: doc - Parameters: parameters - Parameters: location - |
getParameterElementListForHttpHeader | protected List getParameterElementListForHttpHeader(Document doc, List parameters, String location)(Code) | | |
getParameterElementListForSOAPModules | protected List getParameterElementListForSOAPModules(Document doc, List parameters)(Code) | | |
getServiceElement | protected Element getServiceElement(String serviceName, String className, Document doc)(Code) | | A resusable method to return the service element for creating the service xml
Parameters: serviceName - Parameters: className - Parameters: doc - DOM Element |
getUniqueListofFaults | protected Element getUniqueListofFaults(Document doc)(Code) | | A util method that returns a unique list of faults
Parameters: doc - DOM element |
getUniqueListofFaultsofMep | protected Element getUniqueListofFaultsofMep(Document doc, String mep)(Code) | | A util method that returns a unique list of faults for a given mep
Parameters: doc - DOM element |
loadOperations | protected boolean loadOperations(Document doc, Element rootElement, String mep)(Code) | | Loads the operations
Parameters: doc - Parameters: rootElement - Parameters: mep - boolean |
makeJavaClassName | protected String makeJavaClassName(String word)(Code) | | Parameters: word - Returns character removed string. |
processModelObjects | protected void processModelObjects(Map objectMappings, Element root, Document doc)(Code) | | Parameters: objectMappings - Parameters: root - Parameters: doc - |
resetFaultNames | protected void resetFaultNames()(Code) | | rests the fault name maps
|
updateFaultPackageForStub | protected void updateFaultPackageForStub()(Code) | | Change the fault classnames to go with the package and stub
|
updateMapperClassnames | protected void updateMapperClassnames(String fullyQulifiedIncludingClassNamePrefix)(Code) | | 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
|
updateMapperForMessageReceiver | protected void updateMapperForMessageReceiver()(Code) | | Update mapper for message receiver
|
updateMapperForStub | protected void updateMapperForStub()(Code) | | Update mapper for the stub
|
writeCallBackHandlers | protected void writeCallBackHandlers() throws Exception(Code) | | Writes the callback handlers.
|
writeExceptions | protected void writeExceptions() throws Exception(Code) | | Writes the exceptions.
|
writeInterface | protected void writeInterface(boolean writeDatabinders) throws Exception(Code) | | Writes the interfaces.
throws: Exception - |
writeInterfaceImplementation | protected void writeInterfaceImplementation() throws Exception(Code) | | Writes the implementations.
throws: Exception - |
writeMessageReceiver | protected void writeMessageReceiver() throws Exception(Code) | | Writes the message receiver
throws: Exception - |
writeSkeletonInterface | protected void writeSkeletonInterface() throws Exception(Code) | | Write the skeletonInterface
throws: Exception - |
writeTestClasses | protected void writeTestClasses() throws Exception(Code) | | Write the test classes
|
writeWSDLFiles | protected void writeWSDLFiles()(Code) | | 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
|
|
|