|
Lizzy v1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object christophedelory.plist.PlistObject christophedelory.plist.Dict
public class Dict
A plist dictionary collection.
Constructor Summary | |
---|---|
Dict()
|
Method Summary | |
---|---|
void |
addKeyOrObject(PlistObject object)
Deprecated. for Castor's usage. Use put(christophedelory.plist.Key, christophedelory.plist.PlistObject) instead. |
PlistObject |
findObjectByKey(String keyString)
Searches for the object associated with the specified key in this dictionary. |
Hashtable<Key,PlistObject> |
getDictionary()
Returns the dictionary of plist keys and their associated objects. |
List<PlistObject> |
getKeysAndObjects()
Deprecated. for Castor's usage. Use getDictionary() instead. |
PlistObject |
put(Key key,
PlistObject object)
Maps a key to the specified plist object. |
PlistObject |
put(String key,
PlistObject object)
Maps a key string to the specified plist object. |
Methods inherited from class christophedelory.plist.PlistObject |
---|
getParent, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Dict()
Method Detail |
---|
public Hashtable<Key,PlistObject> getDictionary()
null
.put(christophedelory.plist.Key, christophedelory.plist.PlistObject)
public PlistObject put(Key key, PlistObject object)
key
- a key. Shall not be null
.object
- a plist object. Shall not be null
.
null
if it did not have one.
NullPointerException
- if key
is null
.
NullPointerException
- if object
is null
.getDictionary()
public PlistObject put(String key, PlistObject object)
put(new Key(key), object)
".
key
- a key string. Shall not be null
.object
- a plist object. Shall not be null
.
null
if it did not have one.
NullPointerException
- if key
is null
.
NullPointerException
- if object
is null
.put(Key,PlistObject)
@Deprecated public List<PlistObject> getKeysAndObjects()
getDictionary()
instead.
getDictionary()
method.
That's why it is tagged as deprecated.
null
.addKeyOrObject(christophedelory.plist.PlistObject)
,
getDictionary()
@Deprecated public void addKeyOrObject(PlistObject object)
put(christophedelory.plist.Key, christophedelory.plist.PlistObject)
instead.
put(christophedelory.plist.Key, christophedelory.plist.PlistObject)
method.
That's why it is tagged as deprecated.
object
- a plist object. Shall not be null
.
NullPointerException
- if object
is null
.
IllegalArgumentException
- if this object is unexpected at this position.getKeysAndObjects()
,
put(christophedelory.plist.Key, christophedelory.plist.PlistObject)
public PlistObject findObjectByKey(String keyString)
keyString
- the key string to search for. Shall not be null
.
null
if none was found.
NullPointerException
- if keyString
is null
.
|
© 2008-2009 Christophe Delory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |