org.apache.directory.shared.ldap.util
Class PreferencesDictionary

java.lang.Object
  extended by java.util.Dictionary
      extended by org.apache.directory.shared.ldap.util.PreferencesDictionary

public class PreferencesDictionary
extends Dictionary

A wrapper around Preferences to access it as a Dictionary.

Version:
$Rev: 434411 $
Author:
Apache Directory Project

Constructor Summary
PreferencesDictionary(Preferences prefs)
           
 
Method Summary
 Enumeration elements()
           
 Object get(Object key)
           
 Preferences getPreferences()
          Gets the Preferences used as the backing store for this Dictionary.
 boolean isEmpty()
           
 Enumeration keys()
           
 Object put(Object key, Object value)
           
 Object remove(Object key)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreferencesDictionary

public PreferencesDictionary(Preferences prefs)
Method Detail

getPreferences

public Preferences getPreferences()
Gets the Preferences used as the backing store for this Dictionary.

Returns:
the underlying Preferences object

size

public int size()
Specified by:
size in class Dictionary

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in class Dictionary

elements

public Enumeration elements()
Specified by:
elements in class Dictionary

keys

public Enumeration keys()
Specified by:
keys in class Dictionary

get

public Object get(Object key)
Specified by:
get in class Dictionary

remove

public Object remove(Object key)
Specified by:
remove in class Dictionary

put

public Object put(Object key,
                  Object value)
Specified by:
put in class Dictionary


Copyright © 2004-2012. All Rights Reserved.