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.XSSLObject;
14:
15: /**
16: * @author AYegorov
17: *
18: * To change the template for this generated type comment go to
19: * Window>Preferences>Java>Code Generation>Code and Comments
20: */
21: public abstract class AbstractXmlDocumentReference extends XSSLObject {
22: protected Document doc = null;
23:
24: /**
25: * @param id
26: * @param properties
27: */
28: public AbstractXmlDocumentReference(String id, HashMap properties) {
29: super (id, properties);
30: // TODO Auto-generated constructor stub
31: }
32:
33: /* (non-Javadoc)
34: * @see org.xdev.base.transaction.AbstractTransactionObject#processObject(java.lang.Object)
35: */
36: protected Object processObject(Object obj) throws Exception {
37: this .doc = (Document) obj;
38:
39: return this .processXmlDocument(this .doc);
40: }
41:
42: protected abstract Object processXmlDocument(Document doc)
43: throws Exception;
44:
45: }
|