org.mockcentral.editor.dialogs
Enum MockCentralDialogType

java.lang.Object
  extended by java.lang.Enum<MockCentralDialogType>
      extended by org.mockcentral.editor.dialogs.MockCentralDialogType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MockCentralDialogType>

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

An enum specifying the various types of an IMockCentralDialog that can be created using the dialog factory.

Author:
David Hutchinson

Enum Constant Summary
EDIT_EXPECTATION
          Value indicating a dialog for editing method expectation data will be returned.
EDIT_FIXTURE
          Value indicating a dialog for editing basic fixture data will be returned.
EDIT_MOCK_OBJECT
          Value indicating a dialog for editing basic Mock Object data data will be returned.
EDIT_SIGNATURE_PART
          Value indicating a dialog for editing signature part data will be returned.
SAVE_AS
          Value indicating a "save as..." dialog will be returned.
SELECT_TYPE
          Value indicating a dialog for selecting a ValueType will be returned.
 
Method Summary
static MockCentralDialogType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MockCentralDialogType[] 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

SAVE_AS

public static final MockCentralDialogType SAVE_AS
Value indicating a "save as..." dialog will be returned.


EDIT_SIGNATURE_PART

public static final MockCentralDialogType EDIT_SIGNATURE_PART
Value indicating a dialog for editing signature part data will be returned.


EDIT_EXPECTATION

public static final MockCentralDialogType EDIT_EXPECTATION
Value indicating a dialog for editing method expectation data will be returned.


EDIT_MOCK_OBJECT

public static final MockCentralDialogType EDIT_MOCK_OBJECT
Value indicating a dialog for editing basic Mock Object data data will be returned.


EDIT_FIXTURE

public static final MockCentralDialogType EDIT_FIXTURE
Value indicating a dialog for editing basic fixture data will be returned.


SELECT_TYPE

public static final MockCentralDialogType SELECT_TYPE
Value indicating a dialog for selecting a ValueType will be returned.

Method Detail

values

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

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

valueOf

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