org.mockcentral.editor.nodes.mockobject.wizard
Enum EditMockObjectWizardType

java.lang.Object
  extended by java.lang.Enum<EditMockObjectWizardType>
      extended by org.mockcentral.editor.nodes.mockobject.wizard.EditMockObjectWizardType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EditMockObjectWizardType>

public enum EditMockObjectWizardType
extends java.lang.Enum<EditMockObjectWizardType>

An enum used to specify the types of EditMockObjectWizard. The values are used to determine which pages get added and whether various editing controls are enabled.

Author:
David Hutchinson

Enum Constant Summary
EDIT_EXPECTATIONS
          Indicates that the wizard is only editing the Mock Object method expectations list.
EDIT_MOCK_OBJECT_DATA
          Indicates that the wizard is only editing the basic Mock Object data.
NEW_MOCK_OBJECT
          Indicates that the wizard is editing a freshly created Mock Object.
PASTE_MOCK_OBJECT
          Indicates that the wizard is editing a freshly copied and pasted Mock Object.
 
Method Summary
static EditMockObjectWizardType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EditMockObjectWizardType[] 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

NEW_MOCK_OBJECT

public static final EditMockObjectWizardType NEW_MOCK_OBJECT
Indicates that the wizard is editing a freshly created Mock Object. All pages are created, enabling the editing of the basic Mock Object data, list of method expectations and the settings for how the methods will be built.


PASTE_MOCK_OBJECT

public static final EditMockObjectWizardType PASTE_MOCK_OBJECT
Indicates that the wizard is editing a freshly copied and pasted Mock Object. Only the page used to edit the basic Mock Object data is created.


EDIT_MOCK_OBJECT_DATA

public static final EditMockObjectWizardType EDIT_MOCK_OBJECT_DATA
Indicates that the wizard is only editing the basic Mock Object data. Only the page used to edit the basic Mock Object data is created.


EDIT_EXPECTATIONS

public static final EditMockObjectWizardType EDIT_EXPECTATIONS
Indicates that the wizard is only editing the Mock Object method expectations list. Only the pages used to edit method expectations list and build settings are created.

Method Detail

values

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

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

valueOf

public static EditMockObjectWizardType 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