public class NSDictionaryErsatz extends Ersatz
NSDictionary instances and Ersatz world.| Modifier and Type | Method and Description |
|---|---|
java.lang.Iterable<EOAttribute> |
attributes()
Gets all EO attributes that this ersatz object has values stored for.
|
void |
delete()
This operation is unsupported as this ersatz implementation is not bound to any record store.
|
static NSDictionaryErsatz |
fromDictionary(NSDictionary<EOAttribute,java.lang.Object> dict)
Creates ersatz based on values in the given dictionary.
|
static NSDictionaryErsatz |
full(EOEntity entity,
NSDictionary<java.lang.String,java.lang.Object> snapshot)
Creates ersatz representing all record EO attributes from the given EOF snapshot.
|
java.lang.Object |
get(EOAttribute att)
Gets neutral value for an EO attribute.
|
static NSDictionaryErsatz |
partial(EOEntity entity,
NSDictionary<java.lang.String,java.lang.Object> snapshot)
Creates ersatz representing partial value of a record from the given partial EOF snapshot.
|
void |
put(EOAttribute att,
java.lang.Object value)
Sets neutral java value for an EO attribute.
|
void |
remove(EOAttribute att)
Clears value for an EO attribute.
|
static NSMutableDictionary<java.lang.String,java.lang.Object> |
toSnapshot(Ersatz ersatz)
Creates EOF snapshot for the given ersatz.
|
public static NSDictionaryErsatz full(EOEntity entity, NSDictionary<java.lang.String,java.lang.Object> snapshot)
entity - entity that the record represented by this ersatz comes fromsnapshot - EOF record snapshotpublic static NSDictionaryErsatz partial(EOEntity entity, NSDictionary<java.lang.String,java.lang.Object> snapshot)
entity - entity that the record represented by this ersatz comes fromsnapshot - partial EOF record snapshotpublic static NSDictionaryErsatz fromDictionary(NSDictionary<EOAttribute,java.lang.Object> dict)
dict - record snapshotpublic static NSMutableDictionary<java.lang.String,java.lang.Object> toSnapshot(Ersatz ersatz)
ersatz - ersatz to create EOF snapshot forpublic java.lang.Iterable<EOAttribute> attributes()
Ersatzattributes in class Ersatzpublic java.lang.Object get(EOAttribute att)
ErsatzErsatz.attributes().public void put(EOAttribute att, java.lang.Object value)
Ersatzpublic void remove(EOAttribute att)
ErsatzCopyright © 2002 – 2022 Project Wonder.