KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > beehive > wsm > axis > ant > AxisTypeGenerator


1 /*
2  * AxisTypeGenerator.java
3  *
4  * Copyright 2001-2004 The Apache Software Foundation.
5  *
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  *
20  * Original author: Jonathan Colwell
21  */

22 package org.apache.beehive.wsm.axis.ant;
23
24 import javax.wsdl.Binding;
25 import javax.wsdl.Definition;
26 import javax.wsdl.Message;
27 import javax.wsdl.PortType;
28 import javax.wsdl.Service;
29
30 import org.apache.axis.wsdl.gen.Generator;
31 import org.apache.axis.wsdl.gen.NoopGenerator;
32 import org.apache.axis.wsdl.symbolTable.SymbolTable;
33 import org.apache.axis.wsdl.toJava.Emitter;
34 import org.apache.axis.wsdl.toJava.JavaGeneratorFactory;
35
36 /*******************************************************************************
37  *
38  *
39  * @author Jonathan Colwell
40  */

41 public class AxisTypeGenerator extends JavaGeneratorFactory {
42
43     public AxisTypeGenerator() {
44         super();
45         Emitter e = new Emitter();
46         setEmitter(e);
47         emitter.setFactory(this);
48     }
49
50     public void generateTypes(String JavaDoc wsdl, String JavaDoc outputDir) throws Exception JavaDoc {
51    
52         emitter.setOutputDir(outputDir);
53         emitter.run(wsdl);
54     }
55     
56     public Generator getGenerator(Message message, SymbolTable symbolTable) {
57         return new NoopGenerator();
58     }
59
60     public Generator getGenerator(PortType portType, SymbolTable symbolTable) {
61         return new NoopGenerator();
62     }
63
64     public Generator getGenerator(Binding binding, SymbolTable symbolTable) {
65         return new NoopGenerator();
66     }
67
68     public Generator getGenerator(Service service, SymbolTable symbolTable) {
69         return new NoopGenerator();
70     }
71
72     public Generator getGenerator(Definition definition,
73                                   SymbolTable symbolTable) {
74         return new NoopGenerator();
75     }
76 }
77
Popular Tags