org.apache.felix.scr.impl
Class ReadOnlyDictionary

java.lang.Object
  extended by java.util.Dictionary
      extended by org.apache.felix.scr.impl.ReadOnlyDictionary

public class ReadOnlyDictionary
extends java.util.Dictionary

The ReadOnlyDictionary is a Dictionary whose put(Object, Object) and remove(Object) methods have no effect and always return null.

Author:
fmeschbe

Method Summary
 java.util.Enumeration elements()
           
 java.lang.Object get(java.lang.Object key)
           
 boolean isEmpty()
           
 java.util.Enumeration keys()
           
 java.lang.Object put(java.lang.Object arg0, java.lang.Object arg1)
          This method has no effect and always returns null as this instance is read-only and cannot modify and properties.
 java.lang.Object remove(java.lang.Object key)
          This method has no effect and always returns null as this instance is read-only and cannot modify and properties.
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

elements

public java.util.Enumeration elements()
Specified by:
elements in class java.util.Dictionary

get

public java.lang.Object get(java.lang.Object key)
Specified by:
get in class java.util.Dictionary

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in class java.util.Dictionary

keys

public java.util.Enumeration keys()
Specified by:
keys in class java.util.Dictionary

put

public java.lang.Object put(java.lang.Object arg0,
                            java.lang.Object arg1)
This method has no effect and always returns null as this instance is read-only and cannot modify and properties.

Specified by:
put in class java.util.Dictionary

remove

public java.lang.Object remove(java.lang.Object key)
This method has no effect and always returns null as this instance is read-only and cannot modify and properties.

Specified by:
remove in class java.util.Dictionary

size

public int size()
Specified by:
size in class java.util.Dictionary