01: package com.jeta.forms.store.xml.parser;
02:
03: import org.xml.sax.SAXException;
04:
05: import com.jeta.forms.store.JETAPersistable;
06: import com.jeta.forms.store.jml.JMLUtils;
07:
08: public class JETAPersistableHandler extends ObjectHandler {
09:
10: public void endElement(XMLNodeContext ctx) throws SAXException {
11: super .endElement(ctx);
12: if ("object".equalsIgnoreCase(ctx.getQualifiedName())) {
13: try {
14: XMLObjectInput objinput = new XMLObjectInput(this );
15: ((JETAPersistable) getObject()).read(objinput);
16: } catch (Exception e) {
17: throw JMLUtils.createSAXException(e);
18: }
19: }
20: }
21: }
|