laser.alphabet.event
Class AlphabetChangeAction

java.lang.Object
  extended by laser.alphabet.event.AlphabetChangeAction
All Implemented Interfaces:
java.io.Serializable

public class AlphabetChangeAction
extends java.lang.Object
implements java.io.Serializable

The AlphabetChangeAction class enumerates the actions that may change an aspect of the alphabet.

Author:
Heather M. Conboy (laser-software@cs.umass.edu)
See Also:
Serialized Form

Field Summary
static AlphabetChangeAction ADD_VALUE
          A value has been added to a collection
static AlphabetChangeAction REMOVE_VALUE
          A value has been removed from a collection
static AlphabetChangeAction SET_VALUE
          The value has been set
 
Constructor Summary
protected AlphabetChangeAction(java.lang.String name)
          Creates a new AlphabetChangeAction with the given name.
 
Method Summary
static AlphabetChangeAction getAction(java.lang.String name)
          Gets the action with the given name if it exists.
static java.util.Set<AlphabetChangeAction> getActions()
          Gets the set of declared actions.
 java.lang.String getName()
          Gets the unique String name of this action.
 java.lang.String toString()
          Returns a String representation of this action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ADD_VALUE

public static final AlphabetChangeAction ADD_VALUE
A value has been added to a collection


REMOVE_VALUE

public static final AlphabetChangeAction REMOVE_VALUE
A value has been removed from a collection


SET_VALUE

public static final AlphabetChangeAction SET_VALUE
The value has been set

Constructor Detail

AlphabetChangeAction

protected AlphabetChangeAction(java.lang.String name)
Creates a new AlphabetChangeAction with the given name. PRECONDITIONS:

Parameters:
name - The proposed String name
Throws:
java.lang.IllegalArgumentException - if any precondition is not met
Method Detail

getAction

public static final AlphabetChangeAction getAction(java.lang.String name)
Gets the action with the given name if it exists.

Parameters:
name - The name of interest
Returns:
The action with the given name if it exists

getActions

public static final java.util.Set<AlphabetChangeAction> getActions()
Gets the set of declared actions.

Returns:
The set of declared actions

getName

public java.lang.String getName()
Gets the unique String name of this action.

Returns:
The unique String name

toString

public java.lang.String toString()
Returns a String representation of this action.

Overrides:
toString in class java.lang.Object
Returns:
A String representation of this Object