net.sf.plist
Class NSDictionary

java.lang.Object
  extended by net.sf.plist.NSObject
      extended by net.sf.plist.NSDictionary

public class NSDictionary
extends NSObject

A key/value store, with String as keys and NSObject as values.
Usually, the root node of a Property List is a NSDictionary.

In this implementation, a Map is used to represent the NSDictionary.

See Also:
Map

Constructor Summary
NSDictionary(Map<String,NSObject> theMap)
          Constructor .
 
Method Summary
 Set<Map.Entry<String,NSObject>> entrySet()
          Get the entryset for this NSObject.
 NSObject get(String key)
          Get the NSObject associated with key.
 Map<String,NSObject> getValue()
          Get the unmodifiable value of this object.
 Map<String,NSObject> map()
          Get the contents of this object as a Map.
 
Methods inherited from class net.sf.plist.NSObject
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NSDictionary

public NSDictionary(Map<String,NSObject> theMap)
Constructor .

Parameters:
theMap - value of the new object
Method Detail

get

public NSObject get(String key)
Get the NSObject associated with key.

Parameters:
key - The key to retrieve
Returns:
The NSObject associated with key
See Also:
Map.get(Object)

entrySet

public Set<Map.Entry<String,NSObject>> entrySet()
Get the entryset for this NSObject.

Returns:
the entryset
See Also:
Map.entrySet()

getValue

public Map<String,NSObject> getValue()
Get the unmodifiable value of this object.

Specified by:
getValue in class NSObject
Returns:
the value of this object
See Also:
map()

map

public Map<String,NSObject> map()
Get the contents of this object as a Map.

Returns:
the Map
See Also:
Map