01: /*
02: * Created on Feb 6, 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.text;
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 TextContains extends TextContainsIndex {
18: /**
19: * @param id
20: */
21: public TextContains(String id) {
22: super (id);
23: // XXX Auto-generated constructor stub
24: }
25:
26: /**
27: * @param id
28: * @param properties
29: */
30: public TextContains(String id, HashMap properties) {
31: super (id, properties);
32: // XXX Auto-generated constructor stub
33: }
34:
35: public Object processText(String text) throws Exception {
36: String index = super .processText(text).toString();
37:
38: if ("-1".equals(index)) {
39: this .setExecutionStatus(false);
40: }
41:
42: return index;
43: }
44: }
|