org.peace_tools.workspace
Enum WorkspaceEvent.Operation

java.lang.Object
  extended by java.lang.Enum<WorkspaceEvent.Operation>
      extended by org.peace_tools.workspace.WorkspaceEvent.Operation
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<WorkspaceEvent.Operation>
Enclosing class:
WorkspaceEvent

public static enum WorkspaceEvent.Operation
extends java.lang.Enum<WorkspaceEvent.Operation>

Enumeration for the different types of operations on a Workspace entity that can be reported via a WorkspaceEvent object.


Enum Constant Summary
DELETE
          Enumeration used to report that an existing entry of a given type (a data set, a Job, or Server) has been removed from the Workspace.
INSERT
          Enumeration used to report that a new entry of a given type (a data set, a Job, or Server) has been added to the Workspace.
UPDATE
          Enumeration used to report that the status (or information) associated with an entry of a given type (a mst, a cluster, a Job, or Server) has changed.
 
Method Summary
static WorkspaceEvent.Operation valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static WorkspaceEvent.Operation[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INSERT

public static final WorkspaceEvent.Operation INSERT
Enumeration used to report that a new entry of a given type (a data set, a Job, or Server) has been added to the Workspace.


UPDATE

public static final WorkspaceEvent.Operation UPDATE
Enumeration used to report that the status (or information) associated with an entry of a given type (a mst, a cluster, a Job, or Server) has changed.


DELETE

public static final WorkspaceEvent.Operation DELETE
Enumeration used to report that an existing entry of a given type (a data set, a Job, or Server) has been removed from the Workspace.

Method Detail

values

public static WorkspaceEvent.Operation[] 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 (WorkspaceEvent.Operation c : WorkspaceEvent.Operation.values())
    System.out.println(c);

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

valueOf

public static WorkspaceEvent.Operation valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null