org.mockcentral.editor.preferences
Class MockCentralEditorPreferences

java.lang.Object
  extended by org.mockcentral.editor.preferences.MockCentralEditorPreferences

public class MockCentralEditorPreferences
extends java.lang.Object

A simple class to store user-defined preferences/settings for the operation of the editor. Actual preference storage and retrieval is delegated to the current IMockCentralEditor.

Author:
David Hutchinson

Field Summary
static java.lang.String DEFAULT_JNDI_PREFIX_PREF_NAME
          String constant for "default JNDI prefix" preference name.
 
Constructor Summary
MockCentralEditorPreferences()
           
 
Method Summary
static java.lang.Object getPreferenceValue(java.lang.String preferenceName)
          Returns the value of a preference field.
static void setPreferenceValue(java.lang.String preferenceName, java.lang.Object preferenceValue)
          Sets the value of a preference field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_JNDI_PREFIX_PREF_NAME

public static final java.lang.String DEFAULT_JNDI_PREFIX_PREF_NAME
String constant for "default JNDI prefix" preference name. This preference determines the default JNDI prefix to be used when assigning new JNDI names for Mock Objects.

See Also:
Constant Field Values
Constructor Detail

MockCentralEditorPreferences

public MockCentralEditorPreferences()
Method Detail

setPreferenceValue

public static void setPreferenceValue(java.lang.String preferenceName,
                                      java.lang.Object preferenceValue)
Sets the value of a preference field.

Parameters:
preferenceName - the name of the preference field.
preferenceValue - the value for the preference field.

getPreferenceValue

public static java.lang.Object getPreferenceValue(java.lang.String preferenceName)
Returns the value of a preference field.

Parameters:
preferenceName - the name of the preference field.
Returns:
the value of the preference field.