uk.ac.essex.common.pref
Class PreferenceObjectImpl

java.lang.Object
  extended by uk.ac.essex.common.pref.PreferenceObjectImpl
All Implemented Interfaces:
PreferenceObject
Direct Known Subclasses:
GlobalPreferenceObject, IVPreferenceObject, OVPreferenceObject

public class PreferenceObjectImpl
extends java.lang.Object
implements PreferenceObject


Date: 15-Jul-2002


Field Summary
protected  java.util.HashMap prefNameToType
           
protected  java.util.HashMap prefNameToValue
           
 
Constructor Summary
PreferenceObjectImpl()
           
 
Method Summary
 java.lang.Object getPreference(java.lang.String preferenceName)
          Gets the preference of the given name
 java.util.Set getPreferenceNames()
           
 java.lang.Class getType(java.lang.String preferenceName)
           
 void setPreference(java.lang.String preferenceName, java.lang.Object value)
          Sets the preference of the given name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prefNameToValue

protected java.util.HashMap prefNameToValue

prefNameToType

protected java.util.HashMap prefNameToType
Constructor Detail

PreferenceObjectImpl

public PreferenceObjectImpl()
Method Detail

setPreference

public void setPreference(java.lang.String preferenceName,
                          java.lang.Object value)
Sets the preference of the given name

Specified by:
setPreference in interface PreferenceObject
Parameters:
preferenceName - - The pref to set
value - - The value to set it

getPreference

public java.lang.Object getPreference(java.lang.String preferenceName)
Gets the preference of the given name

Specified by:
getPreference in interface PreferenceObject
Parameters:
preferenceName - - The pref to set
Returns:
Object - The value of the pref

getPreferenceNames

public java.util.Set getPreferenceNames()
Specified by:
getPreferenceNames in interface PreferenceObject
Returns:

getType

public java.lang.Class getType(java.lang.String preferenceName)
Specified by:
getType in interface PreferenceObject
Parameters:
preferenceName -
Returns: