axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdani...@apache.org
Subject svn commit: r210150 [23/35] - in /webservices/axis/trunk/java: ./ etc/ modules/addressing/ modules/addressing/src/org/apache/axis2/handlers/addressing/ modules/addressing/test-resources/ modules/addressing/test/org/apache/axis2/handlers/addressing/ mod...
Date Mon, 11 Jul 2005 15:49:55 GMT
Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/XSLTConstants.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/XSLTConstants.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/XSLTConstants.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/XSLTConstants.java Mon Jul 11 08:49:30 2005
@@ -17,30 +17,32 @@
 *
 *   Constants for the XSLT related items
 */
+
 public interface XSLTConstants {
     String DEFAULT_PACKAGE_NAME = "codegen";
 
     /**
      * Language constants
      */
-    public interface LanguageTypes{
+    public interface LanguageTypes {
 
-        public static final int JAVA=1;
-        public static final int C_SHARP=2;
-        public static final int C_PLUS_PLUS=3;
-        public static final int VB_DOT_NET=4;
+        public static final int JAVA = 1;
+        public static final int C_SHARP = 2;
+        public static final int C_PLUS_PLUS = 3;
+        public static final int VB_DOT_NET = 4;
     }
 
-      public interface DataBindingTypes{
+    public interface DataBindingTypes {
 
-        public static final int XML_BEANS=1;
-        public static final int JAXB=2;
+        public static final int XML_BEANS = 1;
+        public static final int JAXB = 2;
 
     }
+
     /**
      * Interface templates
      */
-    public interface XSLTInterfaceTemplates{
+    public interface XSLTInterfaceTemplates {
         public static final String JAVA_TEMPLATE = "/org/apache/axis2/wsdl/template/java/InterfaceTemplate.xsl";
         public static final String CSHARP_TEMPLATE = "/org/apache/axis2/wsdl/template/csharp/InterfaceTemplate.xsl";
     }
@@ -48,7 +50,7 @@
     /**
      * Interface implementation templates
      */
-    public interface XSLTInterfaceImplementationTemplates{
+    public interface XSLTInterfaceImplementationTemplates {
         public static final String JAVA_TEMPLATE = "/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl";
         public static final String CSHARP_TEMPLATE = "/org/apache/axis2/wsdl/template/csharp/InterfaceImplementationTemplate.xsl";
     }
@@ -56,55 +58,53 @@
     /**
      * Interface bean templates
      */
-    public interface XSLTBeanTemplates{
+    public interface XSLTBeanTemplates {
         public static final String JAVA_TEMPLATE = "/org/apache/axis2/wsdl/template/java/BeanTemplate.xsl";
         public static final String CSHARP_TEMPLATE = "/org/apache/axis2/wsdl/template/csharp/BeanTemplate.xsl";
     }
-    
+
     /**
-     * 
      * Interface CallbackHanlder Template
      */
-    public interface XSLTCallbackHandlerTemplates{
-    	public static final String JAVA_TEMPLATE = "/org/apache/axis2/wsdl/template/java/CallbackHandlerTemplate.xsl";
-    	public static final String CSHARP_TEMPLATE = "/org/apache/axis2/wsdl/template/csharp/CallbackHandlerTemplate.xsl";
+    public interface XSLTCallbackHandlerTemplates {
+        public static final String JAVA_TEMPLATE = "/org/apache/axis2/wsdl/template/java/CallbackHandlerTemplate.xsl";
+        public static final String CSHARP_TEMPLATE = "/org/apache/axis2/wsdl/template/csharp/CallbackHandlerTemplate.xsl";
     }
 
-     /**
-     *
+    /**
      * Interface skeletons
      */
-    public interface XSLTSkeletonTemplates{
-    	public static final String JAVA_TEMPLATE = "/org/apache/axis2/wsdl/template/java/SkeletonTemplate.xsl";
-    	public static final String CSHARP_TEMPLATE = "/org/apache/axis2/wsdl/template/csharp/SkeletonTemplate.xsl";
+    public interface XSLTSkeletonTemplates {
+        public static final String JAVA_TEMPLATE = "/org/apache/axis2/wsdl/template/java/SkeletonTemplate.xsl";
+        public static final String CSHARP_TEMPLATE = "/org/apache/axis2/wsdl/template/csharp/SkeletonTemplate.xsl";
     }
 
-    public interface XSLTTestClassTemplates{
-    	public static final String JAVA_TEMPLATE = "/org/apache/axis2/wsdl/template/java/TestClassTemplate.xsl";
-    	public static final String CSHARP_TEMPLATE = "/org/apache/axis2/wsdl/template/csharp/TestClassTemplate.xsl";
+    public interface XSLTTestClassTemplates {
+        public static final String JAVA_TEMPLATE = "/org/apache/axis2/wsdl/template/java/TestClassTemplate.xsl";
+        public static final String CSHARP_TEMPLATE = "/org/apache/axis2/wsdl/template/csharp/TestClassTemplate.xsl";
     }
 
-     public interface XSLTDatabindingSupporterTemplates{
-    	public static final String JAVA_TEMPLATE = "/org/apache/axis2/wsdl/template/java/XMLBeansSupporterTemplate.xsl";
-    	//public static final String CSHARP_TEMPLATE = "/org/apache/axis2/wsdl/template/csharp/TestClassTemplate.xsl";
+    public interface XSLTDatabindingSupporterTemplates {
+        public static final String JAVA_TEMPLATE = "/org/apache/axis2/wsdl/template/java/XMLBeansSupporterTemplate.xsl";
+        //public static final String CSHARP_TEMPLATE = "/org/apache/axis2/wsdl/template/csharp/TestClassTemplate.xsl";
     }
 
-    public interface XSLTLocalTestClassTemplates{
-    	public static final String JAVA_TEMPLATE = "/org/apache/axis2/wsdl/template/java/TestClassTemplate.xsl";
-    	public static final String CSHARP_TEMPLATE = "/org/apache/axis2/wsdl/template/csharp/LocalTestClassTemplate.xsl";
+    public interface XSLTLocalTestClassTemplates {
+        public static final String JAVA_TEMPLATE = "/org/apache/axis2/wsdl/template/java/TestClassTemplate.xsl";
+        public static final String CSHARP_TEMPLATE = "/org/apache/axis2/wsdl/template/csharp/LocalTestClassTemplate.xsl";
     }
 
-    public interface XSLTTestSkeletonImplTemplates{
-    	public static final String JAVA_TEMPLATE = "/org/apache/axis2/wsdl/template/java/TestSkeletonImplTemplate.xsl";
+    public interface XSLTTestSkeletonImplTemplates {
+        public static final String JAVA_TEMPLATE = "/org/apache/axis2/wsdl/template/java/TestSkeletonImplTemplate.xsl";
     }
 
-     public interface XSLTServiceXMLTemplates{
-    	public static final String GENERAL_SERVICE_TEMPLATE = "/org/apache/axis2/wsdl/template/general/ServiceXMLTemplate.xsl";
+    public interface XSLTServiceXMLTemplates {
+        public static final String GENERAL_SERVICE_TEMPLATE = "/org/apache/axis2/wsdl/template/general/ServiceXMLTemplate.xsl";
     }
-     
-     public interface XSLTMessageReceiverTemplates{
-     	public static final String JAVA_TEMPLATE = "/org/apache/axis2/wsdl/template/java/MessageReceiverTemplate.xsl";
-     }
-     
-     
+
+    public interface XSLTMessageReceiverTemplates {
+        public static final String JAVA_TEMPLATE = "/org/apache/axis2/wsdl/template/java/MessageReceiverTemplate.xsl";
+    }
+
+
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/CSharpEmitter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/CSharpEmitter.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/CSharpEmitter.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/CSharpEmitter.java Mon Jul 11 08:49:30 2005
@@ -21,7 +21,8 @@
  *
  * 
  */
-public class CSharpEmitter extends MultiLanguageClientEmitter{
+
+public class CSharpEmitter extends MultiLanguageClientEmitter {
 
     public CSharpEmitter(CodeGenConfiguration configuration) {
         this.configuration = configuration;
@@ -30,11 +31,11 @@
 
     }
 
-     public CSharpEmitter(CodeGenConfiguration configuration,TypeMapper mapper) {
+    public CSharpEmitter(CodeGenConfiguration configuration, TypeMapper mapper) {
         this.configuration = configuration;
-        this.mapper =mapper;
+        this.mapper = mapper;
 
     }
 
-   
+
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/Emitter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/Emitter.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/Emitter.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/Emitter.java Mon Jul 11 08:49:30 2005
@@ -21,15 +21,14 @@
 
 /**
  * @author chathura@opensource.lk
- *
  */
 public interface Emitter {
-	
-	public void setCodeGenConfiguration(CodeGenConfiguration configuration);	
-	
-	public void emitStub() throws CodeGenerationException;
-	
-	public void emitSkeleton() throws CodeGenerationException;
-	
+
+    public void setCodeGenConfiguration(CodeGenConfiguration configuration);
+
+    public void emitStub() throws CodeGenerationException;
+
+    public void emitSkeleton() throws CodeGenerationException;
+
 
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/JavaEmitter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/JavaEmitter.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/JavaEmitter.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/JavaEmitter.java Mon Jul 11 08:49:30 2005
@@ -21,10 +21,10 @@
 *
 * Java emiiter implementation
 */
-public class JavaEmitter extends MultiLanguageClientEmitter{
+
+public class JavaEmitter extends MultiLanguageClientEmitter {
 
     /**
-     *
      * @param configuration
      */
     public JavaEmitter(CodeGenConfiguration configuration) {
@@ -34,16 +34,14 @@
     }
 
     /**
-     *
      * @param configuration
      * @param mapper
      */
-    public JavaEmitter(CodeGenConfiguration configuration,TypeMapper mapper) {
+    public JavaEmitter(CodeGenConfiguration configuration, TypeMapper mapper) {
         this.configuration = configuration;
-        this.mapper =mapper;
+        this.mapper = mapper;
 
     }
 
-      
 
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/MultiLanguageClientEmitter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/MultiLanguageClientEmitter.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/MultiLanguageClientEmitter.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/emitter/MultiLanguageClientEmitter.java Mon Jul 11 08:49:30 2005
@@ -25,7 +25,6 @@
 import java.util.Map;
 
 
-
 /*
 * Copyright 2004,2005 The Apache Software Foundation.
 *
@@ -59,16 +58,16 @@
 */
 
 
-public abstract class MultiLanguageClientEmitter implements Emitter{
+public abstract class MultiLanguageClientEmitter implements Emitter {
     private static final String CALL_BACK_HANDLER_SUFFIX = "CallbackHandler";
     private static final String STUB_SUFFIX = "Stub";
     private static final String TEST_SUFFIX = "Test";
     private static final String LOCAL_TEST_SUFFIX = "LocalTest";
-    private static final String SERVICE_CLASS_SUFFIX ="Skeleton";
-    private static final String TEST_PACKAGE_NAME_SUFFIX =".test";
-    private static final String DATABINDING_SUPPORTER_NAME_SUFFIX ="DatabindingSupporter";
-    private static final String DATABINDING_PACKAGE_NAME_SUFFIX =".databinding";
-    private static final String TEST_SERVICE_CLASS_NAME_SUFFIX ="SkeletonTest";
+    private static final String SERVICE_CLASS_SUFFIX = "Skeleton";
+    private static final String TEST_PACKAGE_NAME_SUFFIX = ".test";
+    private static final String DATABINDING_SUPPORTER_NAME_SUFFIX = "DatabindingSupporter";
+    private static final String DATABINDING_PACKAGE_NAME_SUFFIX = ".databinding";
+    private static final String TEST_SERVICE_CLASS_NAME_SUFFIX = "SkeletonTest";
     private static final String MESSAGE_RECEIVER_SUFFIX = "MessageReceiver";
 
 
@@ -78,8 +77,9 @@
 
     /**
      * Sets the mapper
-     * @see org.apache.axis2.wsdl.databinding.TypeMapper
+     *
      * @param mapper
+     * @see org.apache.axis2.wsdl.databinding.TypeMapper
      */
     public void setMapper(TypeMapper mapper) {
         this.mapper = mapper;
@@ -87,6 +87,7 @@
 
     /**
      * Sets the code generator configuration
+     *
      * @param configuration
      */
     public void setCodeGenConfiguration(CodeGenConfiguration configuration) {
@@ -94,7 +95,6 @@
     }
 
     /**
-     *
      * @see org.apache.axis2.wsdl.codegen.emitter.Emitter#emitStub()
      */
     public void emitStub() throws CodeGenerationException {
@@ -106,9 +106,9 @@
             //write interfaces
             Map services = wom.getServices();
             if (!services.isEmpty()) {
-                if (services.size()==1){
-                    axisService = (WSDLService)services.values().toArray()[0];
-                }else{
+                if (services.size() == 1) {
+                    axisService = (WSDLService) services.values().toArray()[0];
+                } else {
                     throw new UnsupportedOperationException("Single service WSDL files only");
                 }
             }
@@ -117,7 +117,7 @@
             //
             writeInterface(axisBinding);
             //write interface implementations
-            writeInterfaceImplementation(axisBinding,axisService);
+            writeInterfaceImplementation(axisBinding, axisService);
             //write the call back handlers
             writeCallBackHandlers(axisBinding);
             //write the test classes
@@ -135,29 +135,27 @@
     }
 
 
-    protected void writeTestSkeletonImpl(WSDLBinding binding)throws Exception{
-        if (configuration.isWriteTestCase()){
+    protected void writeTestSkeletonImpl(WSDLBinding binding) throws Exception {
+        if (configuration.isWriteTestCase()) {
             XmlDocument classModel = createDocumentForTestSkeletonImpl(binding);
             TestSkeletonImplWriter callbackWriter =
                     new TestSkeletonImplWriter(this.configuration.getOutputLocation(),
-                            this.configuration.getOutputLanguage()
-                    );
-            writeClass(classModel,callbackWriter);
+                                               this.configuration.getOutputLanguage());
+            writeClass(classModel, callbackWriter);
         }
     }
 
     /**
      *
      */
-    protected void writeCallBackHandlers(WSDLBinding binding) throws Exception{
+    protected void writeCallBackHandlers(WSDLBinding binding) throws Exception {
 
-        if (configuration.isAsyncOn()){
+        if (configuration.isAsyncOn()) {
             XmlDocument interfaceModel = createDOMDocumentForCallbackHandler(binding);
             CallbackHandlerWriter callbackWriter =
                     new CallbackHandlerWriter(this.configuration.getOutputLocation(),
-                            this.configuration.getOutputLanguage()
-                    );
-            writeClass(interfaceModel,callbackWriter);
+                                              this.configuration.getOutputLanguage());
+            writeClass(interfaceModel, callbackWriter);
         }
 
     }
@@ -166,37 +164,39 @@
      * Write the local test classes. these test classes are different from the
      * usual test classes because it is meant to work with the generated test
      * skeleton class.
+     *
      * @param binding
      * @throws Exception
      */
-    protected void writeLocalTestClasses(WSDLBinding binding) throws Exception{
+    protected void writeLocalTestClasses(WSDLBinding binding) throws Exception {
 
-        if (configuration.isWriteTestCase()){
+        if (configuration.isWriteTestCase()) {
             XmlDocument classModel = createDOMDocuementForLocalTestCase(binding);
             LocalTestClassWriter callbackWriter =
                     new LocalTestClassWriter(this.configuration.getOutputLocation(),
-                            this.configuration.getOutputLanguage()
-                    );
-            writeClass(classModel,callbackWriter);
+                                             this.configuration.getOutputLanguage());
+            writeClass(classModel, callbackWriter);
         }
     }
+
     /**
      *
      */
-    protected void writeTestClasses(WSDLBinding binding) throws Exception{
+    protected void writeTestClasses(WSDLBinding binding) throws Exception {
 
-        if (configuration.isWriteTestCase()){
+        if (configuration.isWriteTestCase()) {
             XmlDocument classModel = createDOMDocuementForTestCase(binding);
             TestClassWriter callbackWriter =
                     new TestClassWriter(this.configuration.getOutputLocation(),
-                            this.configuration.getOutputLanguage()
-                    );
-            writeClass(classModel,callbackWriter);
+                                        this.configuration.getOutputLanguage());
+            writeClass(classModel, callbackWriter);
         }
 
     }
+
     /**
      * Writes the interfaces
+     *
      * @param axisBinding
      * @throws Exception
      */
@@ -204,13 +204,13 @@
         XmlDocument interfaceModel = createDOMDocuementForInterface(axisBinding);
         InterfaceWriter interfaceWriter =
                 new InterfaceWriter(this.configuration.getOutputLocation(),
-                        this.configuration.getOutputLanguage()
-                );
-        writeClass(interfaceModel,interfaceWriter);
+                                    this.configuration.getOutputLanguage());
+        writeClass(interfaceModel, interfaceWriter);
     }
 
     /**
      * Writes the skeleton
+     *
      * @param axisBinding
      * @throws Exception
      */
@@ -219,15 +219,15 @@
         //Note -  One can generate the skeleton using the interface XML
         XmlDocument skeletonModel = createDOMDocuementForSkeleton(axisBinding);
         ClassWriter skeletonWriter = new SkeletonWriter(this.configuration.getOutputLocation(),
-                this.configuration.getOutputLanguage()
-        );
-        writeClass(skeletonModel,skeletonWriter);
+                                                        this.configuration.getOutputLanguage());
+        writeClass(skeletonModel, skeletonWriter);
 
 
     }
 
     /**
      * Writes the skeleton
+     *
      * @param axisBinding
      * @throws Exception
      */
@@ -236,99 +236,98 @@
         for (Iterator iterator = col.iterator(); iterator.hasNext();) {
             //Note -  there will be a supporter generated per method and will contain the methods to serilize and
             //deserilize the relevant objects
-            XmlDocument databindingSupporterModel = createDOMDocumentforSerialization((WSDLOperation)iterator.next());
+            XmlDocument databindingSupporterModel = createDOMDocumentforSerialization((WSDLOperation) iterator.next());
             ClassWriter databindingSupportWriter = new DatabindingSupportClassWriter(this.configuration.getOutputLocation(),
-                    this.configuration.getOutputLanguage(),this.configuration.getDatabindingType()
-            );
-            writeClass(databindingSupporterModel,databindingSupportWriter);
+                                                                                     this.configuration.getOutputLanguage(), this.configuration.getDatabindingType());
+            writeClass(databindingSupporterModel, databindingSupportWriter);
         }
 
     }
 
     protected void writeTestServiceXML(WSDLBinding axisBinding) throws Exception {
-        if (this.configuration.isWriteTestCase()){
+        if (this.configuration.isWriteTestCase()) {
             //Note -  One can generate the service xml using the interface XML
             XmlDocument skeletonModel = createDOMDocuementForServiceXML(axisBinding, true);
             TestServiceXMLWriter testServiceXmlWriter = new TestServiceXMLWriter(this.configuration.getOutputLocation(),
-                    this.configuration.getOutputLanguage()
-            );
-            writeClass(skeletonModel,testServiceXmlWriter);
+                                                                                 this.configuration.getOutputLanguage());
+            writeClass(skeletonModel, testServiceXmlWriter);
         }
     }
 
     /**
      * Writes the skeleton
+     *
      * @param axisBinding
      * @throws Exception
      */
     protected void writeServiceXml(WSDLBinding axisBinding) throws Exception {
-        if (this.configuration.isGenerateDeployementDescriptor()){
+        if (this.configuration.isGenerateDeployementDescriptor()) {
             XmlDocument skeletonModel = createDOMDocuementForServiceXML(axisBinding, false);
             ClassWriter serviceXmlWriter = new ServiceXMLWriter(this.configuration.getOutputLocation(),
-                    this.configuration.getOutputLanguage()
-            );
-            writeClass(skeletonModel,serviceXmlWriter);
+                                                                this.configuration.getOutputLanguage());
+            writeClass(skeletonModel, serviceXmlWriter);
         }
     }
 
 
     /**
      * Writes the implementations
+     *
      * @param axisBinding
      * @throws Exception
      */
-    protected void writeInterfaceImplementation(WSDLBinding axisBinding,WSDLService service) throws Exception {
-        XmlDocument interfaceImplModel = createDOMDocuementForInterfaceImplementation(axisBinding, service);        
+    protected void writeInterfaceImplementation(WSDLBinding axisBinding, WSDLService service) throws Exception {
+        XmlDocument interfaceImplModel = createDOMDocuementForInterfaceImplementation(axisBinding, service);
         InterfaceImplementationWriter writer =
                 new InterfaceImplementationWriter(this.configuration.getOutputLocation(),
-                        this.configuration.getOutputLanguage()
-                );
-        writeClass(interfaceImplModel,writer);
+                                                  this.configuration.getOutputLanguage());
+        writeClass(interfaceImplModel, writer);
     }
 
-    protected void writeMessageReceiver(WSDLBinding axisBinding)throws Exception{
-        if (configuration.isWriteMessageReceiver()){
+    protected void writeMessageReceiver(WSDLBinding axisBinding) throws Exception {
+        if (configuration.isWriteMessageReceiver()) {
             XmlDocument classModel = createDocumentForMessageReceiver(axisBinding);
             MessageReceiverWriter writer =
                     new MessageReceiverWriter(this.configuration.getOutputLocation(),
-                            this.configuration.getOutputLanguage()
-                    );
-            writeClass(classModel,writer);
+                                              this.configuration.getOutputLanguage());
+            writeClass(classModel, writer);
         }
     }
 
     /**
      * todo Not used yet
+     *
      * @param wsdlType
      * @throws Exception
      */
     protected void writeBeans(WSDLTypes wsdlType) throws Exception {
-        Collection collection= wsdlType.getExtensibilityElements();
-        if (collection != null){
+        Collection collection = wsdlType.getExtensibilityElements();
+        if (collection != null) {
             for (Iterator iterator = collection.iterator(); iterator.hasNext();) {
                 XmlDocument interfaceModel = createDOMDocuementForBean();
                 BeanWriter beanWriter =
                         new BeanWriter(this.configuration.getOutputLocation(),
-                                this.configuration.getOutputLanguage()
-                        );
-                writeClass(interfaceModel,beanWriter);
+                                       this.configuration.getOutputLanguage());
+                writeClass(interfaceModel, beanWriter);
             }
         }
 
     }
+
     /**
      * A resusable method for the implementation of interface and implementation writing
+     *
      * @param model
      * @param writer
      * @throws IOException
      * @throws Exception
      */
-    protected void writeClass(XmlDocument model,ClassWriter writer) throws IOException,Exception {
+    protected void writeClass(XmlDocument model, ClassWriter writer) throws IOException, Exception {
         ByteArrayOutputStream memoryStream = new ByteArrayOutputStream();
         model.write(memoryStream);
         writer.loadTemplate();
         writer.createOutFile(model.getDocumentElement().getAttribute("package"),
-                model.getDocumentElement().getAttribute("name"));
+                             model.getDocumentElement().getAttribute("name"));
         writer.writeOutFile(new ByteArrayInputStream(memoryStream.toByteArray()));
     }
 
@@ -363,15 +362,15 @@
         }
     }
 
-    protected XmlDocument createDocumentForTestSkeletonImpl(WSDLBinding binding){
+    protected XmlDocument createDocumentForTestSkeletonImpl(WSDLBinding binding) {
         WSDLInterface boundInterface = binding.getBoundInterface();
 
         XmlDocument doc = new XmlDocument();
         Element rootElement = doc.createElement("class");
-        addAttribute(doc,"package",configuration.getPackageName()+TEST_PACKAGE_NAME_SUFFIX, rootElement);
-        addAttribute(doc,"servicename",boundInterface.getName().getLocalPart()+SERVICE_CLASS_SUFFIX,rootElement);
+        addAttribute(doc, "package", configuration.getPackageName() + TEST_PACKAGE_NAME_SUFFIX, rootElement);
+        addAttribute(doc, "servicename", boundInterface.getName().getLocalPart() + SERVICE_CLASS_SUFFIX, rootElement);
         addAttribute(doc, "implpackage", configuration.getPackageName(), rootElement);
-        addAttribute(doc,"name",boundInterface.getName().getLocalPart()+TEST_SERVICE_CLASS_NAME_SUFFIX,rootElement);
+        addAttribute(doc, "name", boundInterface.getName().getLocalPart() + TEST_SERVICE_CLASS_NAME_SUFFIX, rootElement);
         addAttribute(doc, "namespace", boundInterface.getName().getNamespaceURI(), rootElement);
         fillSyncAttributes(doc, rootElement);
         loadOperations(boundInterface, doc, rootElement);
@@ -381,16 +380,17 @@
 
     /**
      * Generating the callbacks
+     *
      * @param binding
      * @return
      */
-    protected XmlDocument createDOMDocumentForCallbackHandler(WSDLBinding binding){
+    protected XmlDocument createDOMDocumentForCallbackHandler(WSDLBinding binding) {
         WSDLInterface boundInterface = binding.getBoundInterface();
         XmlDocument doc = new XmlDocument();
         Element rootElement = doc.createElement("callback");
-        addAttribute(doc,"package",configuration.getPackageName(),rootElement);
-        addAttribute(doc,"name",boundInterface.getName().getLocalPart()+CALL_BACK_HANDLER_SUFFIX,rootElement);
-        addAttribute(doc,"namespace",boundInterface.getName().getNamespaceURI(),rootElement);
+        addAttribute(doc, "package", configuration.getPackageName(), rootElement);
+        addAttribute(doc, "name", boundInterface.getName().getLocalPart() + CALL_BACK_HANDLER_SUFFIX, rootElement);
+        addAttribute(doc, "namespace", boundInterface.getName().getNamespaceURI(), rootElement);
 
         //TODO JAXRPC mapping support should be considered
         this.loadOperations(boundInterface, doc, rootElement);
@@ -402,11 +402,12 @@
 
     /**
      * Finds the input element for the xml document
+     *
      * @param doc
      * @param operation
      * @return
      */
-    protected Element getInputElement(XmlDocument doc,WSDLOperation operation){
+    protected Element getInputElement(XmlDocument doc, WSDLOperation operation) {
         Element inputElt = doc.createElement("input");
         Element param = getInputParamElement(doc, operation);
         inputElt.appendChild(param);
@@ -417,20 +418,21 @@
         //todo this should go in a loop
         Element param = doc.createElement("param");
         MessageReference inputMessage = operation.getInputMessage();
-        addAttribute(doc,"name",this.mapper.getParameterName(inputMessage.getElement()),param);
+        addAttribute(doc, "name", this.mapper.getParameterName(inputMessage.getElement()), param);
         String typeMapping = this.mapper.getTypeMapping(inputMessage.getElement());
-        String typeMappingStr  =typeMapping==null?"":typeMapping;
-        addAttribute(doc,"type",typeMappingStr,param);
+        String typeMappingStr = typeMapping == null ? "" : typeMapping;
+        addAttribute(doc, "type", typeMappingStr, param);
         return param;
     }
 
     /**
      * Finds the output element for the output element
+     *
      * @param doc
      * @param operation
      * @return
      */
-    protected Element getOutputElement(XmlDocument doc,WSDLOperation operation){
+    protected Element getOutputElement(XmlDocument doc, WSDLOperation operation) {
         Element outputElt = doc.createElement("output");
         Element param = getOutputParamElement(doc, operation);
         outputElt.appendChild(param);
@@ -439,19 +441,20 @@
 
     private Element getOutputParamElement(XmlDocument doc, WSDLOperation operation) {
         Element param = doc.createElement("param");
-        addAttribute(doc,"name",this.mapper.getParameterName(operation.getOutputMessage().getElement()),param);
+        addAttribute(doc, "name", this.mapper.getParameterName(operation.getOutputMessage().getElement()), param);
 
         String typeMapping = this.mapper.getTypeMapping(operation.getOutputMessage().getElement());
-        String typeMappingStr=typeMapping==null?"":typeMapping;
-        addAttribute(doc,"type",typeMappingStr,param);
+        String typeMappingStr = typeMapping == null ? "" : typeMapping;
+        addAttribute(doc, "type", typeMappingStr, param);
         return param;
     }
 
     /**
      * Todo Finish this
+     *
      * @return
      */
-    protected XmlDocument createDOMDocuementForBean(){
+    protected XmlDocument createDOMDocuementForBean() {
         return null;
     }
 
@@ -461,17 +464,17 @@
         XmlDocument doc = new XmlDocument();
         Element rootElement = doc.createElement("interface");
         String localPart = boundInterface.getName().getLocalPart();
-        if(forTesting){
-            addAttribute(doc,"package",configuration.getPackageName()+TEST_PACKAGE_NAME_SUFFIX, rootElement);
-            addAttribute(doc,"name",localPart+TEST_SERVICE_CLASS_NAME_SUFFIX,rootElement);
-            addAttribute(doc,"servicename",localPart+TEST_SERVICE_CLASS_NAME_SUFFIX,rootElement);
-        }else{
-            addAttribute(doc,"package",configuration.getPackageName(), rootElement);
-            addAttribute(doc,"name",localPart+SERVICE_CLASS_SUFFIX,rootElement);
-            addAttribute(doc,"servicename",localPart,rootElement);
+        if (forTesting) {
+            addAttribute(doc, "package", configuration.getPackageName() + TEST_PACKAGE_NAME_SUFFIX, rootElement);
+            addAttribute(doc, "name", localPart + TEST_SERVICE_CLASS_NAME_SUFFIX, rootElement);
+            addAttribute(doc, "servicename", localPart + TEST_SERVICE_CLASS_NAME_SUFFIX, rootElement);
+        } else {
+            addAttribute(doc, "package", configuration.getPackageName(), rootElement);
+            addAttribute(doc, "name", localPart + SERVICE_CLASS_SUFFIX, rootElement);
+            addAttribute(doc, "servicename", localPart, rootElement);
         }
-        
-        addAttribute(doc,"messagereceiver",localPart+MESSAGE_RECEIVER_SUFFIX,rootElement);
+
+        addAttribute(doc, "messagereceiver", localPart + MESSAGE_RECEIVER_SUFFIX, rootElement);
         fillSyncAttributes(doc, rootElement);
         loadOperations(boundInterface, doc, rootElement);
         doc.appendChild(rootElement);
@@ -480,17 +483,17 @@
     }
 
 
-    protected XmlDocument createDocumentForMessageReceiver(WSDLBinding binding){
+    protected XmlDocument createDocumentForMessageReceiver(WSDLBinding binding) {
         WSDLInterface boundInterface = binding.getBoundInterface();
 
         XmlDocument doc = new XmlDocument();
         Element rootElement = doc.createElement("interface");
-        addAttribute(doc,"package",configuration.getPackageName(), rootElement);
+        addAttribute(doc, "package", configuration.getPackageName(), rootElement);
         String localPart = boundInterface.getName().getLocalPart();
-        addAttribute(doc,"name",localPart+MESSAGE_RECEIVER_SUFFIX,rootElement);
-        addAttribute(doc,"skeletonname",localPart + SERVICE_CLASS_SUFFIX,rootElement);
+        addAttribute(doc, "name", localPart + MESSAGE_RECEIVER_SUFFIX, rootElement);
+        addAttribute(doc, "skeletonname", localPart + SERVICE_CLASS_SUFFIX, rootElement);
         addAttribute(doc, "basereceiver", "org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver", rootElement);
-        addAttribute(doc,"dbsupportpackage",configuration.getPackageName()+DATABINDING_PACKAGE_NAME_SUFFIX,rootElement);
+        addAttribute(doc, "dbsupportpackage", configuration.getPackageName() + DATABINDING_PACKAGE_NAME_SUFFIX, rootElement);
         fillSyncAttributes(doc, rootElement);
         loadOperations(boundInterface, doc, rootElement, binding);
         doc.appendChild(rootElement);
@@ -498,19 +501,21 @@
 
         return doc;
     }
+
     /**
      * Creates the DOM tree for the interface creation
+     *
      * @param binding
      * @return
      */
-    protected XmlDocument createDOMDocuementForInterface(WSDLBinding binding){
+    protected XmlDocument createDOMDocuementForInterface(WSDLBinding binding) {
         WSDLInterface boundInterface = binding.getBoundInterface();
 
         XmlDocument doc = new XmlDocument();
         Element rootElement = doc.createElement("interface");
-        addAttribute(doc,"package",configuration.getPackageName(), rootElement);
-        addAttribute(doc,"name",boundInterface.getName().getLocalPart(),rootElement);
-        addAttribute(doc,"callbackname",boundInterface.getName().getLocalPart() + CALL_BACK_HANDLER_SUFFIX,rootElement);
+        addAttribute(doc, "package", configuration.getPackageName(), rootElement);
+        addAttribute(doc, "name", boundInterface.getName().getLocalPart(), rootElement);
+        addAttribute(doc, "callbackname", boundInterface.getName().getLocalPart() + CALL_BACK_HANDLER_SUFFIX, rootElement);
         fillSyncAttributes(doc, rootElement);
         loadOperations(boundInterface, doc, rootElement);
         doc.appendChild(rootElement);
@@ -518,30 +523,31 @@
 
     }
 
-    protected XmlDocument createDOMDocuementForSkeleton(WSDLBinding binding){
+    protected XmlDocument createDOMDocuementForSkeleton(WSDLBinding binding) {
         WSDLInterface boundInterface = binding.getBoundInterface();
 
         XmlDocument doc = new XmlDocument();
         Element rootElement = doc.createElement("interface");
-        addAttribute(doc,"package",configuration.getPackageName(), rootElement);
-        addAttribute(doc,"name",boundInterface.getName().getLocalPart()+SERVICE_CLASS_SUFFIX,rootElement);
-        addAttribute(doc,"callbackname",boundInterface.getName().getLocalPart() + CALL_BACK_HANDLER_SUFFIX,rootElement);
+        addAttribute(doc, "package", configuration.getPackageName(), rootElement);
+        addAttribute(doc, "name", boundInterface.getName().getLocalPart() + SERVICE_CLASS_SUFFIX, rootElement);
+        addAttribute(doc, "callbackname", boundInterface.getName().getLocalPart() + CALL_BACK_HANDLER_SUFFIX, rootElement);
         fillSyncAttributes(doc, rootElement);
         loadOperations(boundInterface, doc, rootElement);
         doc.appendChild(rootElement);
         return doc;
 
     }
+
     private void fillSyncAttributes(XmlDocument doc, Element rootElement) {
-        addAttribute(doc,"isAsync",this.configuration.isAsyncOn()?"1":"0",rootElement);
-        addAttribute(doc,"isSync",this.configuration.isSyncOn()?"1":"0",rootElement);
+        addAttribute(doc, "isAsync", this.configuration.isAsyncOn() ? "1" : "0", rootElement);
+        addAttribute(doc, "isSync", this.configuration.isSyncOn() ? "1" : "0", rootElement);
     }
 
-    private void loadOperations(WSDLInterface boundInterface, XmlDocument doc, Element rootElement){
+    private void loadOperations(WSDLInterface boundInterface, XmlDocument doc, Element rootElement) {
         loadOperations(boundInterface, doc, rootElement, null);
     }
 
-    private void loadOperations(WSDLInterface boundInterface, XmlDocument doc, Element rootElement,WSDLBinding binding) {
+    private void loadOperations(WSDLInterface boundInterface, XmlDocument doc, Element rootElement, WSDLBinding binding) {
         Collection col = boundInterface.getOperations().values();
         Element methodElement = null;
         WSDLOperation operation = null;
@@ -550,37 +556,37 @@
             operation = (WSDLOperation) iterator.next();
             methodElement = doc.createElement("method");
             String localPart = operation.getName().getLocalPart();
-            addAttribute(doc,"name",localPart,methodElement);
-            addAttribute(doc,"namespace",operation.getName().getNamespaceURI(),methodElement);
-            addAttribute(doc,"style",operation.getStyle(),methodElement);
-            addAttribute(doc,"dbsupportname",localPart+DATABINDING_SUPPORTER_NAME_SUFFIX,methodElement);
-            if(null != binding){
+            addAttribute(doc, "name", localPart, methodElement);
+            addAttribute(doc, "namespace", operation.getName().getNamespaceURI(), methodElement);
+            addAttribute(doc, "style", operation.getStyle(), methodElement);
+            addAttribute(doc, "dbsupportname", localPart + DATABINDING_SUPPORTER_NAME_SUFFIX, methodElement);
+            if (null != binding) {
                 WSDLBindingOperation bindingOperation = binding.getBindingOperation(operation.getName());
-                addSOAPAction(doc,methodElement,bindingOperation);
+                addSOAPAction(doc, methodElement, bindingOperation);
                 testCompatibilityInput(bindingOperation);
                 testCompatibilityOutput(bindingOperation);
             }
-            addAttribute(doc,"mep",operation.getMessageExchangePattern(), methodElement);
-            methodElement.appendChild(getInputElement(doc,operation));
-            methodElement.appendChild(getOutputElement(doc,operation));
+            addAttribute(doc, "mep", operation.getMessageExchangePattern(), methodElement);
+            methodElement.appendChild(getInputElement(doc, operation));
+            methodElement.appendChild(getOutputElement(doc, operation));
             rootElement.appendChild(methodElement);
         }
     }
 
 
-    private void addSOAPAction(XmlDocument doc,Element rootElement,WSDLBindingOperation binding){
+    private void addSOAPAction(XmlDocument doc, Element rootElement, WSDLBindingOperation binding) {
         Iterator extIterator = binding.getExtensibilityElements().iterator();
         boolean actionAdded = false;
-        while(extIterator.hasNext()){
-            WSDLExtensibilityElement element = (WSDLExtensibilityElement)extIterator.next();
-            if(element.getType().equals(ExtensionConstants.SOAP_OPERATION)){
-                addAttribute(doc,"soapaction", ((SOAPOperation)element).getSoapAction(),rootElement);
-                actionAdded = true ;
+        while (extIterator.hasNext()) {
+            WSDLExtensibilityElement element = (WSDLExtensibilityElement) extIterator.next();
+            if (element.getType().equals(ExtensionConstants.SOAP_OPERATION)) {
+                addAttribute(doc, "soapaction", ((SOAPOperation) element).getSoapAction(), rootElement);
+                actionAdded = true;
             }
         }
 
-        if (!actionAdded){
-            addAttribute(doc,"soapaction", "",rootElement);
+        if (!actionAdded) {
+            addAttribute(doc, "soapaction", "", rootElement);
         }
     }
 
@@ -589,17 +595,17 @@
 
         XmlDocument doc = new XmlDocument();
         Element rootElement = doc.createElement("class");
-        addAttribute(doc,"package",configuration.getPackageName(),rootElement);
+        addAttribute(doc, "package", configuration.getPackageName(), rootElement);
         String localPart = boundInterface.getName().getLocalPart();
-        addAttribute(doc,"name",localPart+TEST_SUFFIX,rootElement);
-        addAttribute(doc,"namespace",boundInterface.getName().getNamespaceURI(),rootElement);
-        addAttribute(doc,"interfaceName",localPart,rootElement);
-        addAttribute(doc,"callbackname",localPart + CALL_BACK_HANDLER_SUFFIX,rootElement);
-        addAttribute(doc,"stubname",localPart + STUB_SUFFIX,rootElement);
-        addAttribute(doc,"dbsupportpackage",configuration.getPackageName()+DATABINDING_PACKAGE_NAME_SUFFIX,rootElement);
+        addAttribute(doc, "name", localPart + TEST_SUFFIX, rootElement);
+        addAttribute(doc, "namespace", boundInterface.getName().getNamespaceURI(), rootElement);
+        addAttribute(doc, "interfaceName", localPart, rootElement);
+        addAttribute(doc, "callbackname", localPart + CALL_BACK_HANDLER_SUFFIX, rootElement);
+        addAttribute(doc, "stubname", localPart + STUB_SUFFIX, rootElement);
+        addAttribute(doc, "dbsupportpackage", configuration.getPackageName() + DATABINDING_PACKAGE_NAME_SUFFIX, rootElement);
         fillSyncAttributes(doc, rootElement);
         loadOperations(boundInterface, doc, rootElement);
-        doc.appendChild(rootElement);        
+        doc.appendChild(rootElement);
         return doc;
 
     }
@@ -609,17 +615,17 @@
 
         XmlDocument doc = new XmlDocument();
         Element rootElement = doc.createElement("class");
-        String serviceXMLPath = configuration.getPackageName().replace('.','/')+TEST_PACKAGE_NAME_SUFFIX.replace('.','/')+"/testservice.xml";
-        addAttribute(doc,"package",configuration.getPackageName()+TEST_PACKAGE_NAME_SUFFIX,rootElement);
+        String serviceXMLPath = configuration.getPackageName().replace('.', '/') + TEST_PACKAGE_NAME_SUFFIX.replace('.', '/') + "/testservice.xml";
+        addAttribute(doc, "package", configuration.getPackageName() + TEST_PACKAGE_NAME_SUFFIX, rootElement);
         addAttribute(doc, "servicexmlpath", serviceXMLPath, rootElement);
         addAttribute(doc, "implpackage", configuration.getPackageName(), rootElement);
         String localPart = boundInterface.getName().getLocalPart();
-        addAttribute(doc,"name",localPart+LOCAL_TEST_SUFFIX,rootElement);
-        addAttribute(doc,"namespace",boundInterface.getName().getNamespaceURI(),rootElement);
-        addAttribute(doc,"interfaceName",localPart,rootElement);
-        addAttribute(doc,"callbackname",localPart + CALL_BACK_HANDLER_SUFFIX,rootElement);
-        addAttribute(doc,"stubname",localPart + STUB_SUFFIX,rootElement);
-        addAttribute(doc, "address", "http://localhost:"+Constants.TEST_PORT+"/services/"+boundInterface.getName().getLocalPart()+TEST_SERVICE_CLASS_NAME_SUFFIX, rootElement);
+        addAttribute(doc, "name", localPart + LOCAL_TEST_SUFFIX, rootElement);
+        addAttribute(doc, "namespace", boundInterface.getName().getNamespaceURI(), rootElement);
+        addAttribute(doc, "interfaceName", localPart, rootElement);
+        addAttribute(doc, "callbackname", localPart + CALL_BACK_HANDLER_SUFFIX, rootElement);
+        addAttribute(doc, "stubname", localPart + STUB_SUFFIX, rootElement);
+        addAttribute(doc, "address", "http://localhost:" + Constants.TEST_PORT + "/services/" + boundInterface.getName().getLocalPart() + TEST_SERVICE_CLASS_NAME_SUFFIX, rootElement);
         fillSyncAttributes(doc, rootElement);
         loadOperations(boundInterface, doc, rootElement);
         doc.appendChild(rootElement);
@@ -627,22 +633,23 @@
 
     }
 
-    protected XmlDocument createDOMDocumentforSerialization(WSDLOperation operation){
+    protected XmlDocument createDOMDocumentforSerialization(WSDLOperation operation) {
         XmlDocument doc = new XmlDocument();
         Element rootElement = doc.createElement("class");
-        addAttribute(doc,"package",configuration.getPackageName()+DATABINDING_PACKAGE_NAME_SUFFIX,rootElement);
-        String localPart =operation.getName().getLocalPart();
-        addAttribute(doc,"name",localPart+DATABINDING_SUPPORTER_NAME_SUFFIX,rootElement);
-        addAttribute(doc,"methodname",localPart,rootElement);
-        addAttribute(doc,"namespace",operation.getName().getNamespaceURI(),rootElement);
-        rootElement.appendChild(getInputParamElement(doc,operation));
-        rootElement.appendChild(getOutputParamElement(doc,operation));
+        addAttribute(doc, "package", configuration.getPackageName() + DATABINDING_PACKAGE_NAME_SUFFIX, rootElement);
+        String localPart = operation.getName().getLocalPart();
+        addAttribute(doc, "name", localPart + DATABINDING_SUPPORTER_NAME_SUFFIX, rootElement);
+        addAttribute(doc, "methodname", localPart, rootElement);
+        addAttribute(doc, "namespace", operation.getName().getNamespaceURI(), rootElement);
+        rootElement.appendChild(getInputParamElement(doc, operation));
+        rootElement.appendChild(getOutputParamElement(doc, operation));
         doc.appendChild(rootElement);
         return doc;
     }
 
     /**
      * Creates the DOM tree for implementations
+     *
      * @param binding
      * @param service
      * @return
@@ -654,39 +661,38 @@
         HashMap endpoints = service.getEndpoints();
         XmlDocument doc = new XmlDocument();
         Element rootElement = doc.createElement("class");
-        addAttribute(doc,"package",configuration.getPackageName(),rootElement);
+        addAttribute(doc, "package", configuration.getPackageName(), rootElement);
         String localPart = boundInterface.getName().getLocalPart();
-        addAttribute(doc,"name",localPart+STUB_SUFFIX,rootElement);
-        addAttribute(doc,"servicename",localPart,rootElement);
-        addAttribute(doc,"namespace",boundInterface.getName().getNamespaceURI(),rootElement);
-        addAttribute(doc,"interfaceName",localPart,rootElement);
-        addAttribute(doc,"callbackname",localPart + CALL_BACK_HANDLER_SUFFIX,rootElement);
-        addAttribute(doc,"dbsupportpackage",configuration.getPackageName()+DATABINDING_PACKAGE_NAME_SUFFIX,rootElement);
-        addEndpoints(doc,rootElement,endpoints);
+        addAttribute(doc, "name", localPart + STUB_SUFFIX, rootElement);
+        addAttribute(doc, "servicename", localPart, rootElement);
+        addAttribute(doc, "namespace", boundInterface.getName().getNamespaceURI(), rootElement);
+        addAttribute(doc, "interfaceName", localPart, rootElement);
+        addAttribute(doc, "callbackname", localPart + CALL_BACK_HANDLER_SUFFIX, rootElement);
+        addAttribute(doc, "dbsupportpackage", configuration.getPackageName() + DATABINDING_PACKAGE_NAME_SUFFIX, rootElement);
+        addEndpoints(doc, rootElement, endpoints);
         fillSyncAttributes(doc, rootElement);
-        loadOperations(boundInterface, doc, rootElement,binding);
+        loadOperations(boundInterface, doc, rootElement, binding);
         doc.appendChild(rootElement);
 
 
-
         return doc;
 
     }
 
-    protected void addEndpoints(XmlDocument doc,Element rootElement,HashMap endpointMap){
+    protected void addEndpoints(XmlDocument doc, Element rootElement, HashMap endpointMap) {
         Object[] endpoints = endpointMap.values().toArray();
         WSDLEndpoint endpoint;
         Element endpointElement;
         Text text;
         for (int i = 0; i < endpoints.length; i++) {
-            endpoint = (WSDLEndpoint)endpoints[i];
+            endpoint = (WSDLEndpoint) endpoints[i];
             endpointElement = doc.createElement("endpoint");
             org.apache.wsdl.extensions.SOAPAddress address = null;
             Iterator iterator = endpoint.getExtensibilityElements().iterator();
-            while(iterator.hasNext())  {
-                WSDLExtensibilityElement element = (WSDLExtensibilityElement)iterator.next();
-                if (element.getType().equals(ExtensionConstants.SOAP_ADDRESS)){
-                    address = (org.apache.wsdl.extensions.SOAPAddress)element;
+            while (iterator.hasNext()) {
+                WSDLExtensibilityElement element = (WSDLExtensibilityElement) iterator.next();
+                if (element.getType().equals(ExtensionConstants.SOAP_ADDRESS)) {
+                    address = (org.apache.wsdl.extensions.SOAPAddress) element;
                 }
             }
             text = doc.createTextNode(address.getLocationURI());     //todo How to get the end point address
@@ -696,48 +702,49 @@
 
     }
 
-    protected void addAttribute(XmlDocument document,String AttribName, String attribValue, Element element){
+    protected void addAttribute(XmlDocument document, String AttribName, String attribValue, Element element) {
         Attr attribute = document.createAttribute(AttribName);
         attribute.setValue(attribValue);
         element.setAttributeNode(attribute);
     }
 
-    protected String removeUnsuitableCharacters(String word){
-        return word.replaceAll("\\W","_");
+    protected String removeUnsuitableCharacters(String word) {
+        return word.replaceAll("\\W", "_");
     }
 
-    private void testCompatibiltyAll(WSDLBinding binding){
+    private void testCompatibiltyAll(WSDLBinding binding) {
         HashMap map = binding.getBindingOperations();
         WSDLBindingOperation bindingOp;
         Collection col = map.values();
         for (Iterator iterator = col.iterator(); iterator.hasNext();) {
-            bindingOp =  (WSDLBindingOperation)iterator.next();
+            bindingOp = (WSDLBindingOperation) iterator.next();
             testCompatibilityInput(bindingOp);
             testCompatibilityOutput(bindingOp);
         }
 
 
     }
-    private void testCompatibilityInput(WSDLBindingOperation binding){
+
+    private void testCompatibilityInput(WSDLBindingOperation binding) {
 
         Iterator extIterator = binding.getInput().getExtensibilityElements().iterator();
-        while(extIterator.hasNext()){
-            WSDLExtensibilityElement element = (WSDLExtensibilityElement)extIterator.next();
-            if(element.getType().equals(ExtensionConstants.SOAP_BODY)){
-                if(WSDLConstants.WSDL_USE_ENCODED.equals(((SOAPBody)element).getUse())){
+        while (extIterator.hasNext()) {
+            WSDLExtensibilityElement element = (WSDLExtensibilityElement) extIterator.next();
+            if (element.getType().equals(ExtensionConstants.SOAP_BODY)) {
+                if (WSDLConstants.WSDL_USE_ENCODED.equals(((SOAPBody) element).getUse())) {
                     throw new RuntimeException("The use 'encoded' is not supported!");
                 }
             }
         }
     }
 
-    private void testCompatibilityOutput(WSDLBindingOperation binding){
+    private void testCompatibilityOutput(WSDLBindingOperation binding) {
 
         Iterator extIterator = binding.getOutput().getExtensibilityElements().iterator();
-        while(extIterator.hasNext()){
-            WSDLExtensibilityElement element = (WSDLExtensibilityElement)extIterator.next();
-            if(element.getType().equals(ExtensionConstants.SOAP_BODY)){
-                if(WSDLConstants.WSDL_USE_ENCODED.equals(((SOAPBody)element).getUse())){
+        while (extIterator.hasNext()) {
+            WSDLExtensibilityElement element = (WSDLExtensibilityElement) extIterator.next();
+            if (element.getType().equals(ExtensionConstants.SOAP_BODY)) {
+                if (WSDLConstants.WSDL_USE_ENCODED.equals(((SOAPBody) element).getUse())) {
                     throw new RuntimeException("The use 'encoded' is not supported!");
                 }
             }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/extension/AbstractCodeGenerationExtension.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/extension/AbstractCodeGenerationExtension.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/extension/AbstractCodeGenerationExtension.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/extension/AbstractCodeGenerationExtension.java Mon Jul 11 08:49:30 2005
@@ -20,9 +20,8 @@
 
 /**
  * @author chathura@opensource.lk
- *
  */
-public abstract class AbstractCodeGenerationExtension implements CodeGenExtension{
+public abstract class AbstractCodeGenerationExtension implements CodeGenExtension {
 
-	protected CodeGenConfiguration configuration;
+    protected CodeGenConfiguration configuration;
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/extension/AxisBindingBuilder.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/extension/AxisBindingBuilder.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/extension/AxisBindingBuilder.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/extension/AxisBindingBuilder.java Mon Jul 11 08:49:30 2005
@@ -24,45 +24,43 @@
 
 /**
  * @author chathura@opensource.lk
- *
  */
 public class AxisBindingBuilder extends AbstractCodeGenerationExtension implements CodeGenExtension {
-	
-	public static final String AXIS_NAMESPACE = "http://ws.apache.org/axis2/";
-	
-	public static final QName AXIS_BINDING_QNAME = new QName(AXIS_NAMESPACE, "codeGenerationBinding", "axis");
-	
-	
-	
-	public AxisBindingBuilder() {		
-	}
-	
-	public void init(CodeGenConfiguration configuration){
-		this.configuration = configuration;
-	}
-	
-	public void engage(){
-		WSDLDescription  wom = this.configuration.getWom();
-		WSDLBinding binding = wom.getFirstBinding();
-		
-		WSDLBinding newBinding = wom.createBinding();
-		newBinding.setName(AXIS_BINDING_QNAME);
-		
-		WSDLInterface boundInterface = binding.getBoundInterface();
-		newBinding.setBoundInterface(boundInterface);
-		
-		newBinding.setBindingFaults(binding.getBindingFaults());
-		newBinding.setBindingOperations(binding.getBindingOperations());
-		Iterator elementIterator = binding.getExtensibilityElements().iterator();
-		while(elementIterator.hasNext()){
-			newBinding.addExtensibilityElement((WSDLExtensibilityElement)elementIterator.next());
-		}
-		
-		Iterator attributeIterator = binding.getExtensibilityAttributes().iterator();
-		while(attributeIterator.hasNext()){
-			newBinding.addExtensibleAttributes((WSDLExtensibilityAttribute)attributeIterator.next());
-		}
-		
-		wom.addBinding(newBinding);						
-	}
+
+    public static final String AXIS_NAMESPACE = "http://ws.apache.org/axis2/";
+
+    public static final QName AXIS_BINDING_QNAME = new QName(AXIS_NAMESPACE, "codeGenerationBinding", "axis");
+
+
+    public AxisBindingBuilder() {
+    }
+
+    public void init(CodeGenConfiguration configuration) {
+        this.configuration = configuration;
+    }
+
+    public void engage() {
+        WSDLDescription wom = this.configuration.getWom();
+        WSDLBinding binding = wom.getFirstBinding();
+
+        WSDLBinding newBinding = wom.createBinding();
+        newBinding.setName(AXIS_BINDING_QNAME);
+
+        WSDLInterface boundInterface = binding.getBoundInterface();
+        newBinding.setBoundInterface(boundInterface);
+
+        newBinding.setBindingFaults(binding.getBindingFaults());
+        newBinding.setBindingOperations(binding.getBindingOperations());
+        Iterator elementIterator = binding.getExtensibilityElements().iterator();
+        while (elementIterator.hasNext()) {
+            newBinding.addExtensibilityElement((WSDLExtensibilityElement) elementIterator.next());
+        }
+
+        Iterator attributeIterator = binding.getExtensibilityAttributes().iterator();
+        while (attributeIterator.hasNext()) {
+            newBinding.addExtensibleAttributes((WSDLExtensibilityAttribute) attributeIterator.next());
+        }
+
+        wom.addBinding(newBinding);
+    }
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/extension/CodeGenExtension.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/extension/CodeGenExtension.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/extension/CodeGenExtension.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/extension/CodeGenExtension.java Mon Jul 11 08:49:30 2005
@@ -22,15 +22,13 @@
 
 /**
  * @author chathura@opensource.lk
- *
  */
 public interface CodeGenExtension {
-	
-	
-	public void init(CodeGenConfiguration configuration);
-	
-	public void engage() throws CodeGenerationException;
-	
-	
+
+
+    public void init(CodeGenConfiguration configuration);
+
+    public void engage() throws CodeGenerationException;
+
 
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/extension/PackageFinder.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/extension/PackageFinder.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/extension/PackageFinder.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/extension/PackageFinder.java Mon Jul 11 08:49:30 2005
@@ -26,33 +26,31 @@
 
 /**
  * @author chathura@opensource.lk
- *  
  */
 public class PackageFinder extends AbstractCodeGenerationExtension {
 
-	public void init(CodeGenConfiguration configuration) {
-		this.configuration = configuration;
+    public void init(CodeGenConfiguration configuration) {
+        this.configuration = configuration;
 
-	}
+    }
 
-	public void engage() {
-		Map allOptions = this.configuration.getParser().getAllOptions();
-        CommandLineOption packageOption = (CommandLineOption)(allOptions.get(CommandLineOptionConstants.PACKAGE_OPTION));
-        String packageName = packageOption==null?null:packageOption.getOptionValue();
-
-		if (packageName == null) {
-			WSDLBinding binding = configuration.getWom().getBinding(AxisBindingBuilder.AXIS_BINDING_QNAME);
-			String temp = binding.getBoundInterface().getName().getNamespaceURI();
-			packageName = URLProcessor.getNameSpaceFromURL(temp);
-		}	
-		
-		if(null == packageName || "".equals(packageName))
-			packageName = URLProcessor.DEFAULT_PACKAGE;
-		
-		this.configuration.setPackageName(packageName.toLowerCase());
+    public void engage() {
+        Map allOptions = this.configuration.getParser().getAllOptions();
+        CommandLineOption packageOption = (CommandLineOption) (allOptions.get(CommandLineOptionConstants.PACKAGE_OPTION));
+        String packageName = packageOption == null ? null : packageOption.getOptionValue();
 
-	}
+        if (packageName == null) {
+            WSDLBinding binding = configuration.getWom().getBinding(AxisBindingBuilder.AXIS_BINDING_QNAME);
+            String temp = binding.getBoundInterface().getName().getNamespaceURI();
+            packageName = URLProcessor.getNameSpaceFromURL(temp);
+        }
+
+        if (null == packageName || "".equals(packageName))
+            packageName = URLProcessor.DEFAULT_PACKAGE;
+
+        this.configuration.setPackageName(packageName.toLowerCase());
+
+    }
 
-	
 
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/extension/PolicyEvaluator.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/extension/PolicyEvaluator.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/extension/PolicyEvaluator.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/extension/PolicyEvaluator.java Mon Jul 11 08:49:30 2005
@@ -21,27 +21,25 @@
 
 /**
  * @author chathura@opensource.lk
- *
  */
-public class PolicyEvaluator implements CodeGenExtension{
-	
-	CodeGenConfiguration configuration;
-
-	public PolicyEvaluator() {
-	}
-	
-	/**
-	 * Go through the WSDL and extract the WS-Policy elements
-	 * and map it into a Axis Module. 
-	 *
-	 */
-	public void init( CodeGenConfiguration configuration){
-		this.configuration = configuration;		
-	}
-	
-	public void engage(){
-		
-		
-	}
-	
+public class PolicyEvaluator implements CodeGenExtension {
+
+    CodeGenConfiguration configuration;
+
+    public PolicyEvaluator() {
+    }
+
+    /**
+     * Go through the WSDL and extract the WS-Policy elements
+     * and map it into a Axis Module.
+     */
+    public void init(CodeGenConfiguration configuration) {
+        this.configuration = configuration;
+    }
+
+    public void engage() {
+
+
+    }
+
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/extension/WSDLValidatorExtension.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/extension/WSDLValidatorExtension.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/extension/WSDLValidatorExtension.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/extension/WSDLValidatorExtension.java Mon Jul 11 08:49:30 2005
@@ -16,8 +16,6 @@
 
 package org.apache.axis2.wsdl.codegen.extension;
 
-import java.util.Iterator;
-
 import org.apache.axis2.wsdl.codegen.CodeGenConfiguration;
 import org.apache.axis2.wsdl.codegen.CodeGenerationException;
 import org.apache.wsdl.WSDLDescription;
@@ -26,32 +24,34 @@
 import org.apache.wsdl.extensions.Schema;
 import org.w3c.dom.NamedNodeMap;
 
+import java.util.Iterator;
+
 /**
  * @author chathura@opensource.lk
- *
  */
 public class WSDLValidatorExtension extends AbstractCodeGenerationExtension {
-	private static String TARGETNAMESPACE_STRING = "targetNamespace";
-	public void init(CodeGenConfiguration configuration) {
+    private static String TARGETNAMESPACE_STRING = "targetNamespace";
+
+    public void init(CodeGenConfiguration configuration) {
         this.configuration = configuration;
     }
-	
-	public void engage() throws CodeGenerationException{
-		WSDLDescription wom = this.configuration.getWom();
-		Iterator iterator = wom.getTypes().getExtensibilityElements().iterator();
-		while(iterator.hasNext()){
-			WSDLExtensibilityElement element = (WSDLExtensibilityElement)iterator.next();
-			boolean targetnamespaceFound = false;
-			if(ExtensionConstants.SCHEMA.equals(element.getType())){
-				Schema schema = (Schema)element;
-				NamedNodeMap attributes = schema.getElelment().getAttributes();
-				for(int i=0; i< attributes.getLength(); i++){
-					if(TARGETNAMESPACE_STRING.equalsIgnoreCase(attributes.item(i).getLocalName()))
-						targetnamespaceFound = true;
-				}
-			}
-			if(!targetnamespaceFound)
-				throw new CodeGenerationException("Invalid WSDL: The WSDL Types Schema does not define a targetNamespace");
-		}
-	}
+
+    public void engage() throws CodeGenerationException {
+        WSDLDescription wom = this.configuration.getWom();
+        Iterator iterator = wom.getTypes().getExtensibilityElements().iterator();
+        while (iterator.hasNext()) {
+            WSDLExtensibilityElement element = (WSDLExtensibilityElement) iterator.next();
+            boolean targetnamespaceFound = false;
+            if (ExtensionConstants.SCHEMA.equals(element.getType())) {
+                Schema schema = (Schema) element;
+                NamedNodeMap attributes = schema.getElelment().getAttributes();
+                for (int i = 0; i < attributes.getLength(); i++) {
+                    if (TARGETNAMESPACE_STRING.equalsIgnoreCase(attributes.item(i).getLocalName()))
+                        targetnamespaceFound = true;
+                }
+            }
+            if (!targetnamespaceFound)
+                throw new CodeGenerationException("Invalid WSDL: The WSDL Types Schema does not define a targetNamespace");
+        }
+    }
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/extension/XMLBeansExtension.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/extension/XMLBeansExtension.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/extension/XMLBeansExtension.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/extension/XMLBeansExtension.java Mon Jul 11 08:49:30 2005
@@ -29,6 +29,7 @@
 *
 *
 */
+
 public class XMLBeansExtension extends AbstractCodeGenerationExtension {
     private static final String DEFUALT_STS_NAME = "foo";
 
@@ -39,62 +40,62 @@
 
     public void engage() {
         WSDLTypes typesList = configuration.getWom().getTypes();
-        if (typesList==null){
+        if (typesList == null) {
             //there are no types to be code generated
             return;
         }
         List typesArray = typesList.getExtensibilityElements();
         WSDLExtensibilityElement extensiblityElt = null;
-        XmlObject[] xmlObjects=new XmlObject[typesArray.size()];
+        XmlObject[] xmlObjects = new XmlObject[typesArray.size()];
 
         for (int i = 0; i < typesArray.size(); i++) {
-            extensiblityElt =  (WSDLExtensibilityElement)typesArray.get(i);
+            extensiblityElt = (WSDLExtensibilityElement) typesArray.get(i);
             if (ExtensionConstants.SCHEMA.equals(extensiblityElt.getType())) {
                 try {
-                    Element schemaElement = ((Schema)extensiblityElt).getElelment();
+                    Element schemaElement = ((Schema) extensiblityElt).getElelment();
 //                    //add the namespaces
                     XmlOptions options = new XmlOptions();
                     options.setCompileDownloadUrls();
                     options.setLoadAdditionalNamespaces(configuration.getWom().getNamespaces());
                     //options.
-                    xmlObjects[i] = XmlObject.Factory.parse(schemaElement,options);
+                    xmlObjects[i] = XmlObject.Factory.parse(schemaElement, options);
                 } catch (XmlException e) {
                     throw new RuntimeException(e);
                 }
             }
         }
 
-        final File outputFolder =  configuration.getOutputLocation();
+        final File outputFolder = configuration.getOutputLocation();
 
         try {
-        	
+
             SchemaTypeSystem sts = XmlBeans.compileXmlBeans(DEFUALT_STS_NAME, null,
-                    xmlObjects,
-                    new BindingConfig(), XmlBeans.getContextTypeLoader(),
-                    new Filer() {
-                        public OutputStream createBinaryFile(String typename)
-                                throws IOException {
-                            File file = new File(outputFolder,typename);
-                            file.getParentFile().mkdirs();
-                            file.createNewFile();
-                            return new FileOutputStream(file);
-                        }
-
-                        public Writer createSourceFile(String typename)
-                                throws IOException {
-                            typename = typename.replace('.',File.separatorChar);
-                            File file = new File(outputFolder,typename+".java");
-                            file.getParentFile().mkdirs();
-                            file.createNewFile();
-                            return new FileWriter(file);
-                        }
-                    }, null);
+                                                            xmlObjects,
+                                                            new BindingConfig(), XmlBeans.getContextTypeLoader(),
+                                                            new Filer() {
+                                                                public OutputStream createBinaryFile(String typename)
+                                                                        throws IOException {
+                                                                    File file = new File(outputFolder, typename);
+                                                                    file.getParentFile().mkdirs();
+                                                                    file.createNewFile();
+                                                                    return new FileOutputStream(file);
+                                                                }
+
+                                                                public Writer createSourceFile(String typename)
+                                                                        throws IOException {
+                                                                    typename = typename.replace('.', File.separatorChar);
+                                                                    File file = new File(outputFolder, typename + ".java");
+                                                                    file.getParentFile().mkdirs();
+                                                                    file.createNewFile();
+                                                                    return new FileWriter(file);
+                                                                }
+                                                            }, null);
 
             //create the type mapper
             JavaTypeMapper mapper = new JavaTypeMapper();
-            SchemaType[] types= sts.documentTypes();
+            SchemaType[] types = sts.documentTypes();
 
-            for (int i= 0; i < types.length; i++){
+            for (int i = 0; i < types.length; i++) {
                 //System.out.println("type name = " + types[i].getFullJavaImplName()+" "+types[i].getDocumentElementName());
                 mapper.addTypeMapping(types[i].getDocumentElementName(), types[i].getFullJavaName());
             }
@@ -105,7 +106,6 @@
             throw new RuntimeException(e);
         }
     }
-
 
 
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/BeanWriter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/BeanWriter.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/BeanWriter.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/BeanWriter.java Mon Jul 11 08:49:30 2005
@@ -21,13 +21,14 @@
  *
  * 
  */
-public class BeanWriter extends ClassWriter{
+
+public class BeanWriter extends ClassWriter {
 
     public BeanWriter(String outputFileLocation) {
         this.outputFileLocation = new File(outputFileLocation);
     }
 
-    public BeanWriter(File outputFileLocation,int language) {
+    public BeanWriter(File outputFileLocation, int language) {
         this.outputFileLocation = outputFileLocation;
         this.language = language;
     }
@@ -35,9 +36,9 @@
     /**
      * @see org.apache.axis2.wsdl.codegen.writer.ClassWriter#loadTemplate()
      */
-     public void loadTemplate(){
+    public void loadTemplate() {
         Class clazz = this.getClass();
-        switch (language){
+        switch (language) {
             case XSLTConstants.LanguageTypes.JAVA:
                 this.xsltStream = clazz.getResourceAsStream(XSLTConstants.XSLTBeanTemplates.JAVA_TEMPLATE);
                 break;

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/CallbackHandlerWriter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/CallbackHandlerWriter.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/CallbackHandlerWriter.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/CallbackHandlerWriter.java Mon Jul 11 08:49:30 2005
@@ -22,22 +22,21 @@
 
 /**
  * @author chathura@opensource.lk
- *
  */
 public class CallbackHandlerWriter extends ClassWriter {
-	
-	 public CallbackHandlerWriter(String outputFileLocation) {
+
+    public CallbackHandlerWriter(String outputFileLocation) {
         this.outputFileLocation = new File(outputFileLocation);
     }
 
-    public CallbackHandlerWriter(File outputFileLocation,int language) {
+    public CallbackHandlerWriter(File outputFileLocation, int language) {
         this.outputFileLocation = outputFileLocation;
         this.language = language;
     }
 
     public void loadTemplate() {
         Class clazz = this.getClass();
-        switch (language){
+        switch (language) {
             case XSLTConstants.LanguageTypes.JAVA:
                 this.xsltStream = clazz.getResourceAsStream(XSLTConstants.XSLTCallbackHandlerTemplates.JAVA_TEMPLATE);
                 break;

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/ClassWriter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/ClassWriter.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/ClassWriter.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/ClassWriter.java Mon Jul 11 08:49:30 2005
@@ -28,6 +28,7 @@
 * methods in order
 * ususally it is setLanguage() ->loadTemplate() ->createOutFile() ->WriteOutFile()
 */
+
 public abstract class ClassWriter {
 
     protected File outputFileLocation = null;
@@ -37,6 +38,7 @@
 
     /**
      * Sets the language
+     *
      * @param language
      */
     public void setLanguage(int language) {
@@ -50,22 +52,24 @@
 
     /**
      * Creates the output file
+     *
      * @param packageName
      * @param fileName
      * @throws Exception
      */
-    public void createOutFile(String packageName,String fileName) throws Exception{
-        File outputFile = FileWriter.createClassFile(outputFileLocation,packageName,fileName,language);
+    public void createOutFile(String packageName, String fileName) throws Exception {
+        File outputFile = FileWriter.createClassFile(outputFileLocation, packageName, fileName, language);
         this.stream = new FileOutputStream(outputFile);
     }
 
     /**
      * Writes the output file
+     *
      * @param documentStream
      * @throws Exception
      */
-    public void writeOutFile(InputStream documentStream) throws Exception{
-        XSLTTemplateProcessor.parse(this.stream,documentStream,this.xsltStream);
+    public void writeOutFile(InputStream documentStream) throws Exception {
+        XSLTTemplateProcessor.parse(this.stream, documentStream, this.xsltStream);
         this.stream.flush();
         this.stream.close();
 

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/DatabindingSupportClassWriter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/DatabindingSupportClassWriter.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/DatabindingSupportClassWriter.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/DatabindingSupportClassWriter.java Mon Jul 11 08:49:30 2005
@@ -21,15 +21,16 @@
 *
 *
 */
+
 public class DatabindingSupportClassWriter extends ClassWriter {
 
-    private int databindingFramework=0;
+    private int databindingFramework = 0;
 
     public DatabindingSupportClassWriter(String outputFileLocation) {
         this.outputFileLocation = new File(outputFileLocation);
     }
 
-    public DatabindingSupportClassWriter(File outputFileLocation,int language,int databindingFramework) {
+    public DatabindingSupportClassWriter(File outputFileLocation, int language, int databindingFramework) {
         this.outputFileLocation = outputFileLocation;
         this.language = language;
         this.databindingFramework = databindingFramework;
@@ -40,9 +41,9 @@
     }
 
     public void loadTemplate() {
-        if (this.databindingFramework==XSLTConstants.DataBindingTypes.XML_BEANS){
+        if (this.databindingFramework == XSLTConstants.DataBindingTypes.XML_BEANS) {
             Class clazz = this.getClass();
-            switch (language){
+            switch (language) {
                 case XSLTConstants.LanguageTypes.JAVA:
                     this.xsltStream = clazz.getResourceAsStream(XSLTConstants.XSLTDatabindingSupporterTemplates.JAVA_TEMPLATE);
                     break;
@@ -52,7 +53,7 @@
                 default:
                     throw new UnsupportedOperationException();
             }
-        }else{
+        } else {
             throw new UnsupportedOperationException("Unsupported Data binding Framework!");
         }
     }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/InterfaceImplementationWriter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/InterfaceImplementationWriter.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/InterfaceImplementationWriter.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/InterfaceImplementationWriter.java Mon Jul 11 08:49:30 2005
@@ -21,35 +21,36 @@
  *
  * 
  */
+
 public class InterfaceImplementationWriter extends ClassWriter {
     public InterfaceImplementationWriter(String outputFileLocation) {
-            this.outputFileLocation = new File(outputFileLocation);
-        }
+        this.outputFileLocation = new File(outputFileLocation);
+    }
 
-        public InterfaceImplementationWriter(File outputFileLocation,int language) {
-            this.outputFileLocation = outputFileLocation;
-            this.language = language;
-        }
-
-        /**
-         * @see org.apache.axis2.wsdl.codegen.writer.ClassWriter#loadTemplate()
-         */
-         public void loadTemplate(){
-            Class clazz = this.getClass();
-            switch (language){
-                case XSLTConstants.LanguageTypes.JAVA:
-                    this.xsltStream = clazz.getResourceAsStream(XSLTConstants.XSLTInterfaceImplementationTemplates.JAVA_TEMPLATE);
-                    break;
-                case XSLTConstants.LanguageTypes.C_SHARP:
-                    this.xsltStream = clazz.getResourceAsStream(XSLTConstants.XSLTInterfaceImplementationTemplates.CSHARP_TEMPLATE);
-                    break;
-                case XSLTConstants.LanguageTypes.C_PLUS_PLUS:
-                case XSLTConstants.LanguageTypes.VB_DOT_NET:
-                default:
-                    throw new UnsupportedOperationException();
-            }
+    public InterfaceImplementationWriter(File outputFileLocation, int language) {
+        this.outputFileLocation = outputFileLocation;
+        this.language = language;
+    }
 
+    /**
+     * @see org.apache.axis2.wsdl.codegen.writer.ClassWriter#loadTemplate()
+     */
+    public void loadTemplate() {
+        Class clazz = this.getClass();
+        switch (language) {
+            case XSLTConstants.LanguageTypes.JAVA:
+                this.xsltStream = clazz.getResourceAsStream(XSLTConstants.XSLTInterfaceImplementationTemplates.JAVA_TEMPLATE);
+                break;
+            case XSLTConstants.LanguageTypes.C_SHARP:
+                this.xsltStream = clazz.getResourceAsStream(XSLTConstants.XSLTInterfaceImplementationTemplates.CSHARP_TEMPLATE);
+                break;
+            case XSLTConstants.LanguageTypes.C_PLUS_PLUS:
+            case XSLTConstants.LanguageTypes.VB_DOT_NET:
+            default:
+                throw new UnsupportedOperationException();
         }
+
+    }
 
 
 }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/InterfaceWriter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/InterfaceWriter.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/InterfaceWriter.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/InterfaceWriter.java Mon Jul 11 08:49:30 2005
@@ -21,14 +21,15 @@
 *
 *
 */
-public class InterfaceWriter extends ClassWriter{
+
+public class InterfaceWriter extends ClassWriter {
 
 
     public InterfaceWriter(String outputFileLocation) {
         this.outputFileLocation = new File(outputFileLocation);
     }
 
-    public InterfaceWriter(File outputFileLocation,int language) {
+    public InterfaceWriter(File outputFileLocation, int language) {
         this.outputFileLocation = outputFileLocation;
         this.language = language;
     }
@@ -36,9 +37,9 @@
     /**
      * @see org.apache.axis2.wsdl.codegen.writer.ClassWriter#loadTemplate()
      */
-     public void loadTemplate(){
+    public void loadTemplate() {
         Class clazz = this.getClass();
-        switch (language){
+        switch (language) {
             case XSLTConstants.LanguageTypes.JAVA:
                 this.xsltStream = clazz.getResourceAsStream(XSLTConstants.XSLTInterfaceTemplates.JAVA_TEMPLATE);
                 break;

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/LocalTestClassWriter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/LocalTestClassWriter.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/LocalTestClassWriter.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/LocalTestClassWriter.java Mon Jul 11 08:49:30 2005
@@ -21,19 +21,21 @@
  *
  * 
  */
-public class LocalTestClassWriter extends ClassWriter{
 
-     public LocalTestClassWriter(String outputFileLocation) {
+public class LocalTestClassWriter extends ClassWriter {
+
+    public LocalTestClassWriter(String outputFileLocation) {
         this.outputFileLocation = new File(outputFileLocation);
     }
 
-    public LocalTestClassWriter(File outputFileLocation,int language) {
+    public LocalTestClassWriter(File outputFileLocation, int language) {
         this.outputFileLocation = outputFileLocation;
         this.language = language;
     }
-      public void loadTemplate() {
+
+    public void loadTemplate() {
         Class clazz = this.getClass();
-        switch (language){
+        switch (language) {
             case XSLTConstants.LanguageTypes.JAVA:
                 this.xsltStream = clazz.getResourceAsStream(XSLTConstants.XSLTLocalTestClassTemplates.JAVA_TEMPLATE);
                 break;

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/MessageReceiverWriter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/MessageReceiverWriter.java?rev=210150&r1=210149&r2=210150&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/MessageReceiverWriter.java (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/codegen/writer/MessageReceiverWriter.java Mon Jul 11 08:49:30 2005
@@ -22,28 +22,27 @@
 
 /**
  * @author chathura@opensource.lk
- *  
  */
 public class MessageReceiverWriter extends ClassWriter {
 
-	public MessageReceiverWriter(String outputFileLocation) {
-		this.outputFileLocation = new File(outputFileLocation);
-	}
+    public MessageReceiverWriter(String outputFileLocation) {
+        this.outputFileLocation = new File(outputFileLocation);
+    }
 
-	public MessageReceiverWriter(File outputFileLocation, int language) {
-		this.outputFileLocation = outputFileLocation;
-		this.language = language;
-	}
+    public MessageReceiverWriter(File outputFileLocation, int language) {
+        this.outputFileLocation = outputFileLocation;
+        this.language = language;
+    }
 
-	public void loadTemplate() {
-		Class clazz = this.getClass();
-        switch (language){
+    public void loadTemplate() {
+        Class clazz = this.getClass();
+        switch (language) {
             case XSLTConstants.LanguageTypes.JAVA:
                 this.xsltStream = clazz.getResourceAsStream(XSLTConstants.XSLTMessageReceiverTemplates.JAVA_TEMPLATE);
                 break;
             default:
                 throw new UnsupportedOperationException();
         }
-	}
+    }
 
 }



Mime
View raw message