01: /*
02: * Created on Jan 5, 2004
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: import org.xdev.base.util.GuidGenerator;
12:
13: /**
14: * @author AYegorov
15: *
16: * To change the template for this generated type comment go to
17: * Window>Preferences>Java>Code Generation>Code and Comments
18: */
19: public class XUniqueIdentifier extends XSSLReturn {
20: private Object returnValue = null;
21: private final static String USE_DASHES = "use-dashes";
22:
23: /**
24: * @param id
25: */
26: public XUniqueIdentifier(String id) {
27: super (id);
28: // XXX Auto-generated constructor stub
29: }
30:
31: /**
32: * @param id
33: * @param properties
34: */
35: public XUniqueIdentifier(String id, HashMap properties) {
36: super (id, properties);
37: // XXX Auto-generated constructor stub
38: }
39:
40: /* (non-Javadoc)
41: * @see org.xdev.base.xssl.XSSLReturn#getValue()
42: */
43: public Object getObjectValue() {
44: // XXX Auto-generated method stub
45: return this .returnValue;
46: }
47:
48: /* (non-Javadoc)
49: * @see org.xdev.base.xssl.XSSLAction#set()
50: */
51: protected void set() throws Exception {
52: this.returnValue = GuidGenerator.getGuid(this
53: .getBooleanProperty(XUniqueIdentifier.USE_DASHES));
54: }
55:
56: }
|