01: /*
02: * Created on Aug 5, 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;
08:
09: import java.util.ArrayList;
10: import java.util.HashMap;
11:
12: import org.xdev.base.xssl.XSSLReturn;
13:
14: /**
15: * @author AYegorov
16: *
17: * To change the template for this generated type comment go to
18: * Window>Preferences>Java>Code Generation>Code and Comments
19: */
20: public class TextLength extends AbstractText {
21:
22: /**
23: * @param id
24: */
25: public TextLength(String id) {
26: super (id);
27: // TODO Auto-generated constructor stub
28: }
29:
30: /**
31: * @param id
32: * @param properties
33: */
34: public TextLength(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#getValue()
41: */
42: public Object processText(String text) throws Exception {
43: return String.valueOf(text.length());
44: }
45:
46: }
|