org.mockcentral.editor.nodes.expectation
Class ExpectationModelConstants

java.lang.Object
  extended by org.mockcentral.editor.nodes.expectation.ExpectationModelConstants

public class ExpectationModelConstants
extends java.lang.Object

A Class defining constants for use in editing Mock Object method expectation data.

Author:
David Hutchinson

Field Summary
static java.lang.String EXPECT_RETURN
          String constant corresponding to a value in a JDOM Element that defines a Mock Object method expectation type.
static java.lang.String EXPECT_THROW
          String constant corresponding to a value in a JDOM Element that defines a Mock Object method expectation type.
static java.lang.String MATCH_RETURN
          String constant corresponding to a value in a JDOM Element that defines a Mock Object method expectation type.
static java.lang.String MATCH_THROW
          String constant corresponding to a value in a JDOM Element that defines a Mock Object method expectation type.
 
Constructor Summary
ExpectationModelConstants()
           
 
Method Summary
static java.lang.String getMethodType(java.lang.String methodTypeOption)
          Returns a String value used to construct the JDOM Element entry for the Mock Object method type, based on the parameter.
static java.lang.String getMethodTypeLabel(java.lang.String methodType)
          Returns the label to be used by view components to display a Mock Object method type option, based on the parameter.
static java.util.ArrayList<java.lang.String> getMethodTypeLabels()
          Return the list of labels to be used by view components to display all available Mock Object method type options.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MATCH_RETURN

public static final java.lang.String MATCH_RETURN
String constant corresponding to a value in a JDOM Element that defines a Mock Object method expectation type.

See Also:
Constant Field Values

MATCH_THROW

public static final java.lang.String MATCH_THROW
String constant corresponding to a value in a JDOM Element that defines a Mock Object method expectation type.

See Also:
Constant Field Values

EXPECT_RETURN

public static final java.lang.String EXPECT_RETURN
String constant corresponding to a value in a JDOM Element that defines a Mock Object method expectation type.

See Also:
Constant Field Values

EXPECT_THROW

public static final java.lang.String EXPECT_THROW
String constant corresponding to a value in a JDOM Element that defines a Mock Object method expectation type.

See Also:
Constant Field Values
Constructor Detail

ExpectationModelConstants

public ExpectationModelConstants()
Method Detail

getMethodTypeLabels

public static java.util.ArrayList<java.lang.String> getMethodTypeLabels()
Return the list of labels to be used by view components to display all available Mock Object method type options.

Returns:
the list of labels to be used by view components to display all available Mock Object method type options.

getMethodTypeLabel

public static java.lang.String getMethodTypeLabel(java.lang.String methodType)
Returns the label to be used by view components to display a Mock Object method type option, based on the parameter.

Parameters:
methodType - the value indicating the Mock Object method type.
Returns:
the label to be used by view components to display a Mock Object method type option.

getMethodType

public static java.lang.String getMethodType(java.lang.String methodTypeOption)
Returns a String value used to construct the JDOM Element entry for the Mock Object method type, based on the parameter.

Parameters:
methodTypeOption - the selected method type option.
Returns:
a String value used to construct the JDOM Element entry for the Mock Object method type.