public static class ERXWOXMLCoder.XMLData extends NSMutableDictionary
NSDictionary._JavaNSDictionaryMapEntry<P,Q>
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
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessor
_CLASS
_capacity, _count, _deletionLimit, _entrySetCache, _flags, _hashCache, _hashtableBuckets, _keys, _keysCache, _keySetCache, _MAP_ENTRY_CLASS, _NSDictionaryClassHashCode, _NSDictionaryMapEntryHashCode, _objects, _objectsCache, CheckForNull, EmptyDictionary, IgnoreNull
_KeyPathSeparatorChar, KeyPathSeparator
NullValue
Constructor and Description |
---|
XMLData() |
Modifier and Type | Method and Description |
---|---|
protected void |
clearEmptyValueForKeyPath(String key) |
protected void |
clearParentOnEmptyValueForKeyPath(String key) |
void |
completeDecoding() |
static ERXWOXMLCoder.XMLData |
dataForString(String string,
String mappingUrl)
Deserializes the given string to an instance of XMLData.
|
void |
prepareForCoding() |
static String |
stringForData(ERXWOXMLCoder.XMLData data,
String rootTag,
String mappingUrl)
Serializes to an XML string for the given data object conforming to the supplied model.
|
void |
takeValueForKey(Object aValue,
String aKey)
This works around a bug when the decoder reaches an empty tag an tries to create a dictionary from it.
|
protected void |
takeValueForKeyPathIfNotPresent(Object object,
String key) |
addEntriesFromDictionary, clear, clone, immutableClone, mutableClone, put, putAll, remove, removeAllObjects, removeObjectForKey, removeObjectsForKeys, setDictionary, setObjectForKey, values
_clearDeletionsAndCollisions, _ensureCapacity, _initializeDictionary, _shallowHashCode, allKeys, allKeysForObject, allValues, classForCoder, containsKey, containsValue, count, decodeObject, emptyDictionary, encodeWithCoder, entrySet, equals, get, hashCode, hashMap, hashtable, isEmpty, isEqualToDictionary, keyEnumerator, keySet, keysNoCopy, objectEnumerator, objectForKey, objectsForKeys, objectsNoCopy, of, of, of, of, of, of, of, of, of, of, of, size, takeValueForKeyPath, toString, valueForKey, valueForKeyPath
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public void completeDecoding()
public void prepareForCoding()
protected void takeValueForKeyPathIfNotPresent(Object object, String key)
protected void clearEmptyValueForKeyPath(String key)
protected void clearParentOnEmptyValueForKeyPath(String key)
public void takeValueForKey(Object aValue, String aKey)
takeValueForKey
in interface NSKeyValueCoding
takeValueForKey
in class NSMutableDictionary
aValue
- valueaKey
- keypublic static String stringForData(ERXWOXMLCoder.XMLData data, String rootTag, String mappingUrl)
data
- rootTag
- mappingUrl
- public static ERXWOXMLCoder.XMLData dataForString(String string, String mappingUrl)
string
- mappingUrl
- Copyright © 2002 – 2024 Project Wonder.