axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/wsdl Emitter.java
Date Tue, 09 Oct 2001 13:45:32 GMT
bloritsch    01/10/09 06:45:32

  Modified:    java/src/org/apache/axis/wsdl Emitter.java
  Log:
  Add actual hooks to populate information.
  
  Revision  Changes    Path
  1.40      +66 -16    xml-axis/java/src/org/apache/axis/wsdl/Emitter.java
  
  Index: Emitter.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/Emitter.java,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- Emitter.java	2001/10/09 13:30:55	1.39
  +++ Emitter.java	2001/10/09 13:45:32	1.40
  @@ -490,7 +490,11 @@
        */
       private HashMap writePortType(PortType portType) throws IOException {
           String nameValue = xmlNameToJava(portType.getQName().getLocalPart());
  -        String fileName = nameValue + ".java";
  +        String fileName = nameValue + ".java";
  +
  +        this.fileList.add(fileName);
  +        this.classList.add(nameValue);
  +
           PrintWriter interfacePW = printWriter (fileName);
           if (bVerbose)
               System.out.println("Generating portType interface: " + fileName);
  @@ -519,7 +523,11 @@
        */
       private void writeAxisPortType(PortType portType) throws IOException {
           String nameValue = xmlNameToJava(portType.getQName().getLocalPart()) + "Axis";
  -        String fileName = nameValue + ".java";
  +        String fileName = nameValue + ".java";
  +
  +        this.classList.add(nameValue);
  +        this.fileList.add(fileName);
  +
           PrintWriter interfacePW = printWriter(fileName);
           if (bVerbose)
               System.out.println("Generating server-side PortType interface: " + fileName);
  @@ -893,7 +901,11 @@
        */
       private String fault(Fault operation) throws IOException {
           String exceptionName = Utils.capitalize(xmlNameToJava(operation.getName()));
  -        String fileName = exceptionName + ".java";
  +        String fileName = exceptionName + ".java";
  +
  +        this.classList.add(exceptionName);
  +        this.fileList.add(fileName);
  +
           PrintWriter pw = printWriter(fileName);
   
           if (bVerbose)
  @@ -969,7 +981,11 @@
           }
   
           String stubName = name + "Stub";
  -        String stubFileName = stubName + ".java";
  +        String stubFileName = stubName + ".java";
  +
  +        this.classList.add(stubName);
  +        this.fileList.add(stubFileName);
  +
           PrintWriter stubPW = printWriter(stubFileName);
           if (bVerbose)
               System.out.println("Generating client-side stub: " + stubFileName);
  @@ -1035,10 +1051,14 @@
   
           if (bEmitSkeleton) {
               String skelName = name + "Skeleton";
  -            String skelFileName = skelName + ".java";
  +            String skelFileName = skelName + ".java";
  +
  +            this.classList.add(skelName);
  +            this.fileList.add(skelFileName);
  +
               skelPW = printWriter(skelFileName);
               String implType = portTypeName + " impl";
  -            String implName = name + "Impl";
  +            String implName = name + "Impl";
   
               if (bVerbose)
                   System.out.println("Generating server-side skeleton: " + skelFileName);
  @@ -1058,8 +1078,12 @@
               skelPW.println("        this.impl = impl;");
               skelPW.println("    }");
               skelPW.println();
  +
  +            String implFileName = implName + ".java";
  +
  +            this.classList.add(implName);
  +            this.fileList.add(implFileName);
   
  -            String implFileName = implName + ".java";
               if (!fileExists (implFileName)) {
                   implPW = printWriter(implFileName);
                   if (bVerbose)
  @@ -1406,7 +1430,11 @@
        */
       private void writeService(Service service) throws IOException {
           String serviceName = xmlNameToJava(service.getQName().getLocalPart());
  -        String fileName = serviceName + ".java";
  +        String fileName = serviceName + ".java";
  +
  +        this.classList.add(serviceName);
  +        this.fileList.add(fileName);
  +
           PrintWriter servicePW = printWriter(fileName);
           TestCaseFactory testFactory = null;
   
  @@ -1414,10 +1442,16 @@
               System.out.println("Generating service class: " + fileName);
           }
   
  -        if (this.bEmitTestCase) {
  -            testFactory = new TestCaseFactory(this.printWriter(serviceName + "TestCase.java"),
  +        if (this.bEmitTestCase) {
  +            String testCase = serviceName + "TestCase";
  +            String testCaseFileName = testCase + ".java";
  +
  +            this.classList.add(testCase);
  +            this.fileList.add(testCaseFileName);
  +
  +            testFactory = new TestCaseFactory(this.printWriter(testCaseFileName),
                                                 this.packageName,
  -                                              serviceName + "TestCase",
  +                                              testCase,
                                                 this);
   
               if (this.bVerbose) {
  @@ -1534,12 +1568,16 @@
        */
       private void writeDeploymentXML() {
           try {
  -            PrintWriter deployPW = printWriter("deploy.xml");
  +            PrintWriter deployPW = printWriter("deploy.xml");
  +            this.fileList.add("deploy.xml");
  +
               if (bVerbose) {
                   System.out.println("Generating deployment document: deploy.xml");
               }
               initializeDeploymentDoc(deployPW, "deploy");
  -            PrintWriter undeployPW = printWriter("undeploy.xml");
  +            PrintWriter undeployPW = printWriter("undeploy.xml");
  +            this.fileList.add("undeploy.xml");
  +
               if (bVerbose) {
                   System.out.println("Generating deployment document: undeploy.xml");
               }
  @@ -1766,7 +1804,11 @@
   
           String javaName = type.getJavaLocalName();
   
  -        String fileName = javaName + ".java";
  +        String fileName = javaName + ".java";
  +
  +        this.classList.add(javaName);
  +        this.fileList.add(fileName);
  +
           PrintWriter typePW = printWriter(fileName);
           if (bVerbose)
               System.out.println("Generating type implementation: " + fileName);
  @@ -1827,8 +1869,12 @@
           String baseType = ((Type) values.get(0)).getJavaName();
   
           String javaName = eType.getJavaLocalName();
  +
  +        String fileName = javaName + ".java";
  +
  +        this.classList.add(javaName);
  +        this.fileList.add(fileName);
   
  -        String fileName = javaName + ".java";
           PrintWriter typePW = printWriter(fileName);
           if (bVerbose)
               System.out.println("Generating enum type implementation: " + fileName);
  @@ -1850,8 +1896,12 @@
       private void writeHolder(Type type) throws IOException {
           Node node = type.getNode();
           String javaName = type.getJavaLocalName();
  +
  +        String fileName = javaName + "Holder.java";
  +
  +        this.classList.add(javaName);
  +        this.fileList.add(fileName);
   
  -        String fileName = javaName + "Holder.java";
           PrintWriter pw = printWriter(fileName);
           if (bVerbose)
               System.out.println("Generating type implementation holder: " + fileName);
  
  
  

Mime
View raw message