org.kite9.framework.common
Class FSMHelp

java.lang.Object
  extended by org.kite9.framework.common.FSMHelp

public class FSMHelp
extends Object

Provides utility methods for checking that the before states of the FSM are met.

Author:
robmoffat

Constructor Summary
FSMHelp()
           
 
Method Summary
static void stateOk(Class<? extends Annotation> beforeStateClass, Enum<?> currentValue)
          Given an enum, returns true if the enum has the value specified in the beforestate annotation 'value' field.
static void stateOk(Class<? extends Annotation> beforeStateClass, Enum<?> currentValue, String fieldName)
          Given an annotation field, returns true if the field 'fieldName' of the 'thisObject' is in the state given.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FSMHelp

public FSMHelp()
Method Detail

stateOk

public static void stateOk(Class<? extends Annotation> beforeStateClass,
                           Enum<?> currentValue)
Given an enum, returns true if the enum has the value specified in the beforestate annotation 'value' field.


stateOk

public static void stateOk(Class<? extends Annotation> beforeStateClass,
                           Enum<?> currentValue,
                           String fieldName)
Given an annotation field, returns true if the field 'fieldName' of the 'thisObject' is in the state given.



Copyright © 2011. All Rights Reserved.