47
48 protected Loader(boolean expectText) {
49 this.expectText = expectText;
50 }
51
52 protected Loader() {
53 }
54
55 //
56 //
57 //
58 // Contract
59 //
60 //
61 //
62 /**
63 * Called when the loader is activated, which is when a new start tag is seen
64 * and when the parent designated this loader as the child loader.
65 *
66 * <p>
67 * The callee may change <tt>state.loader</tt> to designate another {@link Loader}
68 * for the processing. It's the responsibility of the callee to forward the startElement
69 * event in such a case.
70 *
71 * @param ea
72 * info about the start tag. never null.
73 */
74 public void startElement(UnmarshallingContext.State state,TagName ea) throws SAXException {
75 }
76
77 /**
78 * Called when this loaderis an active loaderand we see a new child start tag.
79 *
80 * <p>
81 * The callee is expected to designate another loaderas a loaderthat processes
82 * this element, then it should also register a {@link Receiver}.
83 * The designated loaderwill become an active loader.
84 *
85 * <p>
86 * The default implementation reports an error saying an element is unexpected.
87 */
|
47
48 protected Loader(boolean expectText) {
49 this.expectText = expectText;
50 }
51
52 protected Loader() {
53 }
54
55 //
56 //
57 //
58 // Contract
59 //
60 //
61 //
62 /**
63 * Called when the loader is activated, which is when a new start tag is seen
64 * and when the parent designated this loader as the child loader.
65 *
66 * <p>
67 * The callee may change {@code state.loader} to designate another {@link Loader}
68 * for the processing. It's the responsibility of the callee to forward the startElement
69 * event in such a case.
70 *
71 * @param ea
72 * info about the start tag. never null.
73 */
74 public void startElement(UnmarshallingContext.State state,TagName ea) throws SAXException {
75 }
76
77 /**
78 * Called when this loaderis an active loaderand we see a new child start tag.
79 *
80 * <p>
81 * The callee is expected to designate another loaderas a loaderthat processes
82 * this element, then it should also register a {@link Receiver}.
83 * The designated loaderwill become an active loader.
84 *
85 * <p>
86 * The default implementation reports an error saying an element is unexpected.
87 */
|