01: /*
02: * Created on Dec 8, 2003
03: *
04: * To change the template for this generated file go to
05: * Window>Preferences>Java>Code Generation>Code and Comments
06: */
07: package org.xdev.base.xssl.text.xml;
08:
09: import java.util.HashMap;
10:
11: import org.jdom.Document;
12:
13: import org.xdev.base.xssl.XSSLReturn;
14: import org.xdev.base.xssl.XSSLReturnValue;
15:
16: /**
17: * @author AYegorov
18: *
19: * To change the template for this generated type comment go to
20: * Window>Preferences>Java>Code Generation>Code and Comments
21: */
22: public abstract class AbstractXmlDocument extends XSSLReturnValue {
23: private Document doc = null;
24:
25: /**
26: * @param id
27: */
28: public AbstractXmlDocument(String id) {
29: super (id);
30: // TODO Auto-generated constructor stub
31: }
32:
33: /**
34: * @param id
35: * @param properties
36: */
37: public AbstractXmlDocument(String id, HashMap properties) {
38: super (id, properties);
39: // TODO Auto-generated constructor stub
40: }
41:
42: /* (non-Javadoc)
43: * @see org.xdev.base.transaction.AbstractTransactionValue#returnValue(org.xdev.base.transaction.AbstractTransactionResult)
44: */
45: protected Object returnValue(XSSLReturn rs) throws Exception {
46: this .doc = (Document) rs.getObjectValue();
47:
48: return this .processXmlDocument(this .doc);
49: }
50:
51: protected abstract Object processXmlDocument(Document doc)
52: throws Exception;
53:
54: }
|