KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ws > jaxme > generator > SchemaReader


1 /*
2  * Copyright 2003, 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  */

17 package org.apache.ws.jaxme.generator;
18
19 import org.apache.ws.jaxme.generator.sg.SGFactory;
20 import org.apache.ws.jaxme.generator.sg.SchemaSG;
21 import org.xml.sax.InputSource JavaDoc;
22 import org.xml.sax.SAXException JavaDoc;
23
24
25 /** <p>A SchemaReader is responsible for reading a schema
26  * definition.</p>
27  *
28  * @author <a HREF="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
29  */

30 public interface SchemaReader {
31   /** <p>Returns the Generator controlling the SchemaReader.</p>
32    */

33   public Generator getGenerator();
34
35   /** <p>Sets the Generator controlling the SchemaReader.</p>
36    */

37   public void setGenerator(Generator pGenerator);
38
39   /** <p>Adds an instance of {@link org.apache.ws.jaxme.generator.sg.SGFactoryChain}
40    * to the SGFactory.</p>
41    */

42   public void addSGFactoryChain(Class JavaDoc pClass);
43
44   /** <p>Returns the {@link SGFactory}.</p>
45    */

46   public SGFactory getSGFactory() throws SAXException JavaDoc;
47
48   /** <p>Called for parsing a schema definition from the
49    * given Reader.</p>
50    *
51    * @param pSource A SAX Input Source, with the system ID set,
52    * if possible
53    */

54   public SchemaSG parse(InputSource JavaDoc pSource) throws Exception JavaDoc;
55 }
56
Popular Tags