hmi.bml
Enum BMLSync

java.lang.Object
  extended by java.lang.Enum<BMLSync>
      extended by hmi.bml.BMLSync
All Implemented Interfaces:
Serializable, Comparable<BMLSync>

public enum BMLSync
extends Enum<BMLSync>

Standard BML synchronization points

Author:
welberge

Enum Constant Summary
END
           
READY
           
RELAX
           
START
           
STROKE
           
STROKE_END
           
STROKE_START
           
 
Field Summary
private  String id
           
private static Map<String,BMLSync> idToSync
           
 
Method Summary
static BMLSync get(String id)
           
 String getId()
           
 boolean isAfter(BMLSync s)
           
 boolean isBefore(BMLSync s)
           
static boolean isBMLSync(String id)
           
 String toString()
           
static BMLSync valueOf(String name)
          Returns the enum constant of this type with the specified name.
static BMLSync[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

START

public static final BMLSync START

READY

public static final BMLSync READY

STROKE_START

public static final BMLSync STROKE_START

STROKE

public static final BMLSync STROKE

STROKE_END

public static final BMLSync STROKE_END

RELAX

public static final BMLSync RELAX

END

public static final BMLSync END
Field Detail

id

private String id

idToSync

private static Map<String,BMLSync> idToSync
Method Detail

values

public static BMLSync[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (BMLSync c : BMLSync.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static BMLSync valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

isBefore

public boolean isBefore(BMLSync s)

isAfter

public boolean isAfter(BMLSync s)

isBMLSync

public static boolean isBMLSync(String id)

getId

public String getId()

get

public static BMLSync get(String id)

toString

public String toString()
Overrides:
toString in class Enum<BMLSync>