Annotation Type State


  • @Retention(RUNTIME)
    @Target(FIELD)
    public @interface State
    Annotation used to define the states in a state machine. Only applies to static final String fields. The value of the string will be used as state id.
    • Field Summary

      Fields 
      Modifier and Type Fields Description
      static java.lang.String ROOT
      The intial state
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String value
      Sets the id of the parent state.
    • Field Detail

      • ROOT

        static final java.lang.String ROOT
        The intial state
    • Element Detail

      • value

        java.lang.String value
        Sets the id of the parent state. The default is no parent.
        Returns:
        the id of the parent state
        Default:
        "__root__"