01: //
02: // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v1.0.5-b16-fcs
03: // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
04: // Any modifications to this file will be lost upon recompilation of the source schema.
05: // Generated on: 2005.12.17 at 09:43:27 AM GMT+07:00
06: //
07:
08: package com.mvnforum.jaxb.db.impl.runtime;
09:
10: import org.xml.sax.Attributes;
11: import org.xml.sax.SAXException;
12:
13: /**
14: * UnmarshallingEventHandler implementation that discards the whole sub-tree.
15: *
16: * @author
17: * Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
18: */
19: class Discarder implements UnmarshallingEventHandler {
20:
21: private final UnmarshallingContext context;
22:
23: // nest level of elements.
24: private int depth = 0;
25:
26: public Discarder(UnmarshallingContext _ctxt) {
27: this .context = _ctxt;
28: }
29:
30: public void enterAttribute(String uri, String local, String qname)
31: throws SAXException {
32: }
33:
34: public void enterElement(String uri, String local, String qname,
35: Attributes atts) throws SAXException {
36: depth++;
37: }
38:
39: public void leaveAttribute(String uri, String local, String qname)
40: throws SAXException {
41: }
42:
43: public void leaveElement(String uri, String local, String qname)
44: throws SAXException {
45: depth--;
46: if (depth == 0)
47: context.popContentHandler();
48: }
49:
50: public Object owner() {
51: return null;
52: }
53:
54: public void text(String s) throws SAXException {
55: }
56:
57: public void leaveChild(int nextState) throws SAXException {
58: }
59:
60: }
|