org.apache.directory.shared.util
Class PreferencesDictionary

java.lang.Object
  extended by java.util.Dictionary<String,String>
      extended by org.apache.directory.shared.util.PreferencesDictionary

public class PreferencesDictionary
extends Dictionary<String,String>

A wrapper around Preferences to access it as a Dictionary.

Author:
Apache Directory Project

Constructor Summary
PreferencesDictionary(Preferences prefs)
           
 
Method Summary
 Enumeration<String> elements()
           
 String get(Object key)
           
 Preferences getPreferences()
          Gets the Preferences used as the backing store for this Dictionary.
 boolean isEmpty()
           
 Enumeration<String> keys()
           
 String put(String key, String value)
           
 String 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<String,String>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in class Dictionary<String,String>

elements

public Enumeration<String> elements()
Specified by:
elements in class Dictionary<String,String>

keys

public Enumeration<String> keys()
Specified by:
keys in class Dictionary<String,String>

get

public String get(Object key)
Specified by:
get in class Dictionary<String,String>

remove

public String remove(Object key)
Specified by:
remove in class Dictionary<String,String>

put

public String put(String key,
                  String value)
Specified by:
put in class Dictionary<String,String>


Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.