KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ws > jaxme > generator > sg > SGItem


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.sg;
18
19 import org.apache.ws.jaxme.generator.sg.SchemaSG;
20 import org.apache.ws.jaxme.generator.sg.SGFactory;
21 import org.xml.sax.Locator JavaDoc;
22 import org.xml.sax.SAXException JavaDoc;
23
24
25 /** <p>A common base interface for
26  * {@link org.apache.ws.jaxme.generator.sg.ComplexTypeSG},
27  * {@link org.apache.ws.jaxme.generator.sg.ObjectSG},
28  * {@link org.apache.ws.jaxme.generator.sg.SchemaSG},
29  * {@link org.apache.ws.jaxme.generator.sg.SimpleTypeSG}, and
30  * {@link org.apache.ws.jaxme.generator.sg.TypeSG}.</p>
31  *
32  * @author <a HREF="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
33  */

34 public interface SGItem {
35   /** <p>Returns the factory that created this item.</p>
36    */

37   public SGFactory getFactory();
38
39   /** <p>Returns the items schema.</p>
40    */

41   public SchemaSG getSchema();
42
43   /** <p>Returns the items location in the schema; useful for
44    * error messages.</p>
45    */

46   public Locator JavaDoc getLocator();
47
48   /** <p>Initializes the item.</p>
49    */

50   public void init() throws SAXException JavaDoc;
51 }
52
Popular Tags