Project Wonder 2.0

er.extensions
Class ERXMutableDictionary

java.lang.Object
  extended bycom.webobjects.foundation.NSDictionary
      extended bycom.webobjects.foundation.NSMutableDictionary
          extended byer.extensions.ERXMutableDictionary
All Implemented Interfaces:
_NSFoundationCollection, Cloneable, Map, NSCoding, NSKeyValueCoding, NSKeyValueCodingAdditions, Serializable

public class ERXMutableDictionary
extends NSMutableDictionary
implements Map

usefull class in to automatically en- and decode an NSMutableDictionary as blob into a database. ERPrototype name = mutableDictionary

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.Map
Map.Entry
 
Nested classes inherited from class com.webobjects.foundation.NSCoding
NSCoding._BigDecimalSupport, NSCoding._BigIntegerSupport, NSCoding._BooleanSupport, NSCoding._ByteSupport, NSCoding._CharacterSupport, NSCoding._DateSupport, NSCoding._DoubleSupport, NSCoding._FloatSupport, NSCoding._IntegerSupport, NSCoding._LongSupport, NSCoding._NumberSupport, NSCoding._ShortSupport, NSCoding._StringSupport, NSCoding.Support
 
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCoding
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.DefaultImplementation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.Null, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.Utility, NSKeyValueCoding.ValueAccessor
 
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCodingAdditions
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
 
Field Summary
static long serialVersionUID
           
 
Fields inherited from class com.webobjects.foundation.NSMutableDictionary
_CLASS
 
Fields inherited from class com.webobjects.foundation.NSDictionary
_capacity, _count, _deletionLimit, _flags, _hashCache, _hashtableBuckets, _keys, _keysCache, _NSDictionaryClassHashCode, _objects, _objectsCache, EmptyDictionary
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding
NullValue
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
_KeyPathSeparatorChar, KeyPathSeparator
 
Constructor Summary
ERXMutableDictionary()
           
ERXMutableDictionary(NSDictionary d)
           
 
Method Summary
 NSArray allValues()
           
 void clear()
           
 Object clone()
           
 boolean containsKey(Object arg0)
           
 boolean containsValue(Object arg0)
           
 Set entrySet()
           
static ERXMutableDictionary fromBlob(NSData d)
           
static ERXMutableDictionary fromPropertyList(String plist)
           
 Object get(Object arg0)
           
 boolean isEmpty()
           
 Set keySet()
           
 Object put(Object arg0, Object arg1)
           
 void putAll(Map arg0)
           
 Object remove(Object arg0)
           
 int size()
           
 NSData toBlob()
           
static NSData toBlob(ERXMutableDictionary d)
           
 String toPropertyList()
           
static String toPropertyList(ERXMutableDictionary dict)
           
 Collection values()
           
 
Methods inherited from class com.webobjects.foundation.NSMutableDictionary
addEntriesFromDictionary, immutableClone, mutableClone, removeAllObjects, removeObjectForKey, removeObjectsForKeys, setDictionary, setObjectForKey, takeValueForKey
 
Methods inherited from class com.webobjects.foundation.NSDictionary
_clearDeletionsAndCollisions, _ensureCapacity, _initializeDictionary, _shallowHashCode, allKeys, allKeysForObject, classForCoder, count, decodeObject, encodeWithCoder, equals, hashCode, hashtable, isEqualToDictionary, keyEnumerator, keysNoCopy, objectEnumerator, objectForKey, objectsForKeys, objectsNoCopy, takeValueForKeyPath, toString, valueForKey, valueForKeyPath
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

ERXMutableDictionary

public ERXMutableDictionary(NSDictionary d)

ERXMutableDictionary

public ERXMutableDictionary()
Method Detail

toBlob

public static NSData toBlob(ERXMutableDictionary d)
                     throws Exception
Throws:
Exception

fromBlob

public static ERXMutableDictionary fromBlob(NSData d)
                                     throws Exception
Throws:
Exception

fromPropertyList

public static ERXMutableDictionary fromPropertyList(String plist)

toPropertyList

public static String toPropertyList(ERXMutableDictionary dict)

toPropertyList

public String toPropertyList()

toBlob

public NSData toBlob()
              throws Exception
Throws:
Exception

clone

public Object clone()

clear

public void clear()
Specified by:
clear in interface Map

containsKey

public boolean containsKey(Object arg0)
Specified by:
containsKey in interface Map

containsValue

public boolean containsValue(Object arg0)
Specified by:
containsValue in interface Map

entrySet

public Set entrySet()
Specified by:
entrySet in interface Map

get

public Object get(Object arg0)
Specified by:
get in interface Map

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map

keySet

public Set keySet()
Specified by:
keySet in interface Map

put

public Object put(Object arg0,
                  Object arg1)
Specified by:
put in interface Map

putAll

public void putAll(Map arg0)
Specified by:
putAll in interface Map

remove

public Object remove(Object arg0)
Specified by:
remove in interface Map

size

public int size()
Specified by:
size in interface Map

values

public Collection values()
Specified by:
values in interface Map

allValues

public NSArray allValues()

Last updated: Do, Dez 9, 2004 • 12:46 PM CET

Copyright © 2002 – 2004 Project Wonder.