01: /*
02: * Created on Dec 2, 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;
08:
09: import java.util.HashMap;
10:
11: /**
12: * @author AYegorov
13: *
14: * To change the template for this generated type comment go to
15: * Window>Preferences>Java>Code Generation>Code and Comments
16: */
17: public class XReference extends XSSLReturn {
18: public static final String REFERENCE_TAG_NAME = "reference";
19:
20: private Object returnValue = null;
21:
22: /**
23: * @param id
24: */
25: public XReference(String id) {
26: super (id);
27: // TODO Auto-generated constructor stub
28: }
29:
30: /**
31: * @param id
32: * @param properties
33: */
34: public XReference(String id, HashMap properties) {
35: super (id, properties);
36: // TODO Auto-generated constructor stub
37: }
38:
39: /* (non-Javadoc)
40: * @see org.xdev.base.transaction.AbstractTransactionResult#set()
41: */
42: protected void set() throws Exception {
43: this .returnValue = this .getReference();
44:
45: while (this .returnValue instanceof XReference) {
46: this .returnValue = ((XReference) this .returnValue)
47: .getObjectValue();
48: }
49: }
50:
51: /* (non-Javadoc)
52: * @see org.xdev.base.transaction.AbstractTransactionResult#getValue()
53: */
54: public Object getObjectValue() {
55: // TODO Auto-generated method stub
56: return this .returnValue;
57: }
58:
59: protected String setTagName() {
60: return XReference.REFERENCE_TAG_NAME;
61: }
62: }
|