com.evelopers.unimod.core.stateworks
Class StateType

java.lang.Object
  extended bycom.evelopers.unimod.core.stateworks.StateType
All Implemented Interfaces:
java.io.Serializable

public final class StateType
extends java.lang.Object
implements java.io.Serializable

Represents possible state types.

Pattern used: Enumeration

See Also:
Serialized Form

Field Summary
static StateType FINAL
          Final state type
static java.lang.String FINAL_NAME
           
static StateType INITIAL
          Initial state type
static java.lang.String INITIAL_NAME
           
static StateType NORMAL
          Normal state type (simple or composite)
static java.lang.String NORMAL_NAME
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares two state types
 java.lang.String getName()
          Returns name of state type
 int hashCode()
          Returns StateType hash code
static StateType parseStateType(java.lang.String s)
          Parses StateType object from given string
 java.lang.String toString()
          Returns string representation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

INITIAL_NAME

public static final java.lang.String INITIAL_NAME
See Also:
Constant Field Values

FINAL_NAME

public static final java.lang.String FINAL_NAME
See Also:
Constant Field Values

NORMAL_NAME

public static final java.lang.String NORMAL_NAME
See Also:
Constant Field Values

INITIAL

public static final StateType INITIAL
Initial state type


FINAL

public static final StateType FINAL
Final state type


NORMAL

public static final StateType NORMAL
Normal state type (simple or composite)

Method Detail

equals

public boolean equals(java.lang.Object o)
Compares two state types

Parameters:
o - another StateType
Returns:
true if state types are equal

hashCode

public int hashCode()
Returns StateType hash code

Returns:
hash code

toString

public java.lang.String toString()
Returns string representation

Returns:
string representation

getName

public java.lang.String getName()
Returns name of state type

Returns:
state type name

parseStateType

public static StateType parseStateType(java.lang.String s)
Parses StateType object from given string

Parameters:
s - string representation of StateType
Returns:
StateType
Throws:
StateTypeFormatException - if given string can't be parsed into StateType object