KickJava   Java API By Example, From Geeks To Geeks.

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


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

18 public class Abort implements Step {
19   /**
20    * @see org.sapia.soto.state.Step#getName()
21    */

22   public String JavaDoc getName() {
23     return ClassUtils.getShortClassName(getClass());
24   }
25
26   /**
27    * @see org.sapia.soto.state.Executable#execute(org.sapia.soto.state.Result)
28    */

29   public void execute(Result st) {
30     st.abort();
31   }
32 }
33
Popular Tags