All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.apple.alpha.core.Dictionary

java.lang.Object
   |
   +----com.apple.alpha.core.NativeObject
           |
           +----com.apple.alpha.core.Dictionary

public class Dictionary
extends NativeObject
implements Coding
This class wraps the Objective-C class NSDictionary.


Constructor Index

 o Dictionary()
This default constructor is equivalent to Objective-C's [[NSDictionary alloc] init].
 o Dictionary(Array, Array)
This constructor has the same effect as calling - initWithObjects:forKeys: on a newly allocated object.
 o Dictionary(boolean, int)
Protected constructor used by the bridge to wrap an Objective-C object.
 o Dictionary(Coder)
This constructor has the same effect as calling - initWithCoder: on a newly allocated object.
 o Dictionary(Dictionary)
This constructor has the same effect as calling - initWithDictionary: on a newly allocated object.
 o Dictionary(Dictionary, boolean)
This constructor has the same effect as calling - initWithDictionary:copyItems: on a newly allocated object.
 o Dictionary(String)
This constructor has the same effect as calling - initWithContentsOfFile: on a newly allocated object.

Method Index

 o allKeys()
A wrapper for the - allKeys Objective-C instance method.
 o allKeysForObject(Object)
A wrapper for the - allKeysForObject: Objective-C instance method.
 o allValues()
A wrapper for the - allValues Objective-C instance method.
 o count()
A wrapper for the - count Objective-C instance method.
 o dictionary()
A wrapper for the + dictionary Objective-C class method.
 o dictionaryWithContentsOfFile(String)
A wrapper for the + dictionaryWithContentsOfFile: Objective-C class method.
 o dictionaryWithDictionary(Dictionary)
A wrapper for the + dictionaryWithDictionary: Objective-C class method.
 o dictionaryWithObjectForKey(Object, Object)
A wrapper for the + dictionaryWithObject:forKey: Objective-C class method.
 o dictionaryWithObjectsForKeys(Array, Array)
A wrapper for the + dictionaryWithObjects:forKeys: Objective-C class method.
 o encodeWithCoder(Coder)
A wrapper for the - encodeWithCoder: Objective-C instance method defined by the Coding interface (known as the NSCoding Objective-C protocol).
 o isEqualToDictionary(Dictionary)
A wrapper for the - isEqualToDictionary: Objective-C instance method.
 o keyEnumerator()
A wrapper for the - keyEnumerator Objective-C instance method.
 o keysSortedByValueUsingSelector(Selector)
A wrapper for the - keysSortedByValueUsingSelector: Objective-C instance method.
 o objectEnumerator()
A wrapper for the - objectEnumerator Objective-C instance method.
 o objectForKey(Object)
A wrapper for the - objectForKey: Objective-C instance method.
 o objectsForKeys(Array, Object)
A wrapper for the - objectsForKeys:notFoundMarker: Objective-C instance method.
 o writeToFile(String, boolean)
A wrapper for the - writeToFile:atomically: Objective-C instance method.

Constructors

 o Dictionary
 protected Dictionary(boolean shouldAllocate,
                      int objcObject)
Protected constructor used by the bridge to wrap an Objective-C object. It should never be invoked directly.

 o Dictionary
 public Dictionary()
This default constructor is equivalent to Objective-C's [[NSDictionary alloc] init].

 o Dictionary
 public Dictionary(Coder aDecoder)
This constructor has the same effect as calling - initWithCoder: on a newly allocated object.

 o Dictionary
 public Dictionary(String path)
This constructor has the same effect as calling - initWithContentsOfFile: on a newly allocated object.

 o Dictionary
 public Dictionary(Array objects,
                   Array keys)
This constructor has the same effect as calling - initWithObjects:forKeys: on a newly allocated object.

 o Dictionary
 public Dictionary(Dictionary otherDictionary)
This constructor has the same effect as calling - initWithDictionary: on a newly allocated object.

 o Dictionary
 public Dictionary(Dictionary otherDictionary,
                   boolean aBool)
This constructor has the same effect as calling - initWithDictionary:copyItems: on a newly allocated object.

Methods

 o count
 public native int count()
A wrapper for the - count Objective-C instance method.

 o keyEnumerator
 public native Enumerator keyEnumerator()
A wrapper for the - keyEnumerator Objective-C instance method.

 o objectForKey
 public native Object objectForKey(Object aKey)
A wrapper for the - objectForKey: Objective-C instance method.

 o allKeys
 public native Array allKeys()
A wrapper for the - allKeys Objective-C instance method.

 o allKeysForObject
 public native Array allKeysForObject(Object anObject)
A wrapper for the - allKeysForObject: Objective-C instance method.

 o allValues
 public native Array allValues()
A wrapper for the - allValues Objective-C instance method.

 o isEqualToDictionary
 public native boolean isEqualToDictionary(Dictionary otherDictionary)
A wrapper for the - isEqualToDictionary: Objective-C instance method.

 o objectEnumerator
 public native Enumerator objectEnumerator()
A wrapper for the - objectEnumerator Objective-C instance method.

 o objectsForKeys
 public native Array objectsForKeys(Array keys,
                                    Object marker)
A wrapper for the - objectsForKeys:notFoundMarker: Objective-C instance method.

 o writeToFile
 public native boolean writeToFile(String path,
                                   boolean useAuxiliaryFile)
A wrapper for the - writeToFile:atomically: Objective-C instance method.

 o keysSortedByValueUsingSelector
 public native Array keysSortedByValueUsingSelector(Selector comparator)
A wrapper for the - keysSortedByValueUsingSelector: Objective-C instance method.

 o dictionary
 public static native Object dictionary()
A wrapper for the + dictionary Objective-C class method.

 o dictionaryWithContentsOfFile
 public static native Object dictionaryWithContentsOfFile(String path)
A wrapper for the + dictionaryWithContentsOfFile: Objective-C class method.

 o dictionaryWithObjectsForKeys
 public static native Object dictionaryWithObjectsForKeys(Array objects,
                                                          Array keys)
A wrapper for the + dictionaryWithObjects:forKeys: Objective-C class method.

 o dictionaryWithDictionary
 public static native Object dictionaryWithDictionary(Dictionary dict)
A wrapper for the + dictionaryWithDictionary: Objective-C class method.

 o dictionaryWithObjectForKey
 public static native Object dictionaryWithObjectForKey(Object object,
                                                        Object key)
A wrapper for the + dictionaryWithObject:forKey: Objective-C class method.

 o encodeWithCoder
 public native void encodeWithCoder(Coder aCoder)
A wrapper for the - encodeWithCoder: Objective-C instance method defined by the Coding interface (known as the NSCoding Objective-C protocol).


All Packages  Class Hierarchy  This Package  Previous  Next  Index