KickJava   Java API By Example, From Geeks To Geeks.

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


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.js.JavaSource;
20 import org.apache.ws.jaxme.xs.xml.XsQName;
21 import org.apache.ws.jaxme.generator.sg.Context;
22 import org.apache.ws.jaxme.generator.sg.SGItem;
23 import org.apache.ws.jaxme.generator.sg.TypeSG;
24 import org.xml.sax.SAXException JavaDoc;
25
26
27 /** <p>A source generator for elements or attributes.</p>
28  *
29  * @author <a HREF="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
30  */

31 public interface ObjectSG extends SGItem {
32   /** <p>Returns the objects name.</p>
33    */

34   public XsQName getName();
35
36   /** <p>Returns the objects {@link Context}.</p>
37    */

38   public Context getClassContext();
39
40   /** <p>Returns the objects type.</p>
41    */

42   public TypeSG getTypeSG();
43
44   /** <p>If the object is global and complex: Generates its XML interface.</p>
45    */

46   public JavaSource getXMLInterface() throws SAXException JavaDoc;
47
48   /** <p>If the object is global and complex: Generates its XML implementation.</p>
49    */

50   public JavaSource getXMLImplementation() throws SAXException JavaDoc;
51
52   /** <p>If the object is global and complex: Generates its XML handler.</p>
53    */

54   public JavaSource getXMLHandler() throws SAXException JavaDoc;
55
56   /** <p>If the object is global and complex: Generates its XML serializer.</p>
57    */

58   public JavaSource getXMLSerializer() throws SAXException JavaDoc;
59
60   /** <p>Generates the objects sources.</p>
61    */

62   public void generate() throws SAXException JavaDoc;
63
64   /** Returns whether the <code>ObjectSG</code> is global.
65    */

66   public boolean isGlobal() throws SAXException JavaDoc;
67 }
68
Popular Tags