KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ws > jaxme > generator > sg > impl > ccsg > HandlerSG


1 /*
2  * Copyright 2005 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.ws.jaxme.generator.sg.impl.ccsg;
17
18 import org.apache.ws.jaxme.js.JavaMethod;
19 import org.apache.ws.jaxme.js.JavaSource;
20 import org.xml.sax.SAXException JavaDoc;
21
22
23 /** Interface of an object, which generates instances
24  * of {@link org.apache.ws.jaxme.impl.JMSAXElementParser},
25  * or {@link org.apache.ws.jaxme.impl.JMSAXGroupParser}.
26  */

27 public interface HandlerSG {
28     /** Returns the class being generated.
29      */

30     public JavaSource getJavaSource();
31
32     /** Creates the handlers method
33      * {@link org.apache.ws.jaxme.impl.JMSAXElementParser#addAttribute(String, String, String)}.
34      */

35     public JavaMethod newAddAttributeMethod() throws SAXException JavaDoc;
36
37     /** Creates the handlers method
38      * {@link org.apache.ws.jaxme.impl.JMSAXGroupParser#startElement(String, String, String, org.xml.sax.Attributes)}.
39      */

40     public JavaMethod newStartElementMethod() throws SAXException JavaDoc;
41
42     /** Creates the handlers method
43      * {@link org.apache.ws.jaxme.impl.JMSAXGroupParser#endElement(String, String, String, Object)}.
44      */

45     public JavaMethod newEndElementMethod() throws SAXException JavaDoc;
46
47     /** Creates the handlers method
48      * {@link org.apache.ws.jaxme.impl.JMSAXGroupParser#isFinished()}.
49      */

50     public JavaMethod newIsFinishedMethod() throws SAXException JavaDoc;
51
52     /** Creates the handlers method
53      * {@link org.apache.ws.jaxme.impl.JMSAXElementParser#isEmpty()}.
54      */

55     public JavaMethod newIsEmptyMethod() throws SAXException JavaDoc;
56
57     /** Creates the handlers method
58      * {@link org.apache.ws.jaxme.impl.JMSAXElementParser#isAtomic()}.
59      */

60     public JavaMethod newIsAtomicMethod() throws SAXException JavaDoc;
61
62     /** Invokes the various "newFooMethod" methods.
63      */

64     public void generate() throws SAXException JavaDoc;
65 }
66
Popular Tags