KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > soto > state > util > DebugStep


1 package org.sapia.soto.state.util;
2
3 import org.sapia.soto.Debug;
4 import org.sapia.soto.state.Result;
5 import org.sapia.soto.state.Step;
6
7
8 /**
9  * @author Yanick Duchesne
10  * <dl>
11  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2003 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
12  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
13  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
14  * </dl>
15  */

16 public class DebugStep implements Step {
17   private String JavaDoc _msg;
18
19   public DebugStep() {
20   }
21
22   /**
23    * @see org.sapia.soto.state.Step#getName()
24    */

25   public String JavaDoc getName() {
26     return "Echo";
27   }
28
29   public void setMsg(String JavaDoc msg) {
30     _msg = msg;
31   }
32
33   /**
34    * @see org.sapia.soto.state.Executable#execute(org.sapia.soto.state.Result)
35    */

36   public void execute(Result st) {
37     if ((_msg != null) && Debug.DEBUG) {
38       Debug.debug(_msg);
39     }
40   }
41 }
42
Popular Tags