1
2
3
4
5
6
7
8 package net.sf.jour.config.impl.runtime;
9
10 import org.xml.sax.Attributes;
11 import org.xml.sax.SAXException;
12
13 /***
14 * Implemented by the generated code to unmarshall an object
15 * from unmarshaller events.
16 *
17 * <p>
18 * AbstractUnmarshallingEventHandlerImpl throws a SAXException when a problem is encountered
19 * and that problem is not reported. It is the responsibility of the caller
20 * of this interface to report it to the client's ValidationEventHandler
21 * and re-wrap it into UnmarshalException.
22 *
23 * @author
24 * Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
25 */
26 public interface UnmarshallingEventHandler {
27
28 /***
29 * Returns the content-tree object for which this unmarshaller
30 * is working for.
31 */
32 Object owner();
33
34
35
36
37 void enterElement(String uri, String local, String qname, Attributes atts) throws SAXException;
38 void leaveElement(String uri, String local, String qname ) throws SAXException;
39 void text(String s) throws SAXException;
40 void enterAttribute(String uri, String local, String qname ) throws SAXException;
41 void leaveAttribute(String uri, String local, String qname ) throws SAXException;
42 void leaveChild(int nextState) throws SAXException;
43 }