1
2
3
4
5
6
7
8 package de.nierbeck.timeTrack.model.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 from unmarshaller
15 * events.
16 *
17 * <p>
18 * AbstractUnmarshallingEventHandlerImpl throws a SAXException when a problem is
19 * encountered and that problem is not reported. It is the responsibility of the
20 * caller of this interface to report it to the client's ValidationEventHandler
21 * and re-wrap it into UnmarshalException.
22 *
23 * @author Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
24 */
25 public interface UnmarshallingEventHandler {
26
27 /***
28 * Returns the content-tree object for which this unmarshaller is working
29 * for.
30 */
31 Object owner();
32
33
34
35
36 void enterElement(String uri, String local, String qname, Attributes atts)
37 throws SAXException;
38
39 void leaveElement(String uri, String local, String qname)
40 throws SAXException;
41
42 void text(String s) throws SAXException;
43
44 void enterAttribute(String uri, String local, String qname)
45 throws SAXException;
46
47 void leaveAttribute(String uri, String local, String qname)
48 throws SAXException;
49
50 void leaveChild(int nextState) throws SAXException;
51 }