KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > axis > wsdl > gen > Generator


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

16 package org.apache.axis.wsdl.gen;
17
18 import java.io.IOException JavaDoc;
19
20 /**
21  * This is the interface for all writers. All writers, very simply, must
22  * support a write method.
23  * <p/>
24  * Writer and WriterFactory are part of the Writer framework. Folks who want
25  * to use the emitter to generate stuff from WSDL should do 3 things:
26  * 1. Write implementations of the Writer interface, one each for PortType,
27  * Binding, Service, and Type. These implementations generate the stuff
28  * for each of these WSDL types.
29  * 2. Write an implementation of the WriterFactory interface that returns
30  * instantiations of these Writer implementations as appropriate.
31  * 3. Implement a class with a main method (like Wsdl2java) that instantiates
32  * an emitter and passes it the WriterFactory implementation
33  */

34 public interface Generator {
35
36     /**
37      * Generate something.
38      *
39      * @throws IOException
40      */

41     public void generate() throws IOException JavaDoc;
42 }
43
Popular Tags