KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > tools > xjc > runtime > UnmarshallingEventHandler


1 package com.sun.tools.xjc.runtime;
2
3 import org.xml.sax.Attributes JavaDoc;
4 import org.xml.sax.SAXException JavaDoc;
5
6 /**
7  * Implemented by the generated code to unmarshall an object
8  * from unmarshaller events.
9  *
10  * <p>
11  * AbstractUnmarshallingEventHandlerImpl throws a SAXException when a problem is encountered
12  * and that problem is not reported. It is the responsibility of the caller
13  * of this interface to report it to the client's ValidationEventHandler
14  * and re-wrap it into UnmarshalException.
15  *
16  * @author
17  * Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
18  */

19 public interface UnmarshallingEventHandler {
20     
21     /**
22      * Returns the content-tree object for which this unmarshaller
23      * is working for.
24      */

25     Object JavaDoc owner();
26
27     //
28
// event handlers
29
//
30
void enterElement(String JavaDoc uri, String JavaDoc local, String JavaDoc qname, Attributes JavaDoc atts) throws SAXException JavaDoc;
31     void leaveElement(String JavaDoc uri, String JavaDoc local, String JavaDoc qname ) throws SAXException JavaDoc;
32     void text(String JavaDoc s) throws SAXException JavaDoc;
33     void enterAttribute(String JavaDoc uri, String JavaDoc local, String JavaDoc qname ) throws SAXException JavaDoc;
34     void leaveAttribute(String JavaDoc uri, String JavaDoc local, String JavaDoc qname ) throws SAXException JavaDoc;
35     void leaveChild(int nextState) throws SAXException JavaDoc;
36 }
37
Popular Tags