public static class ERXWOXMLCoder.XMLData extends NSMutableDictionary
NSDictionary._JavaNSDictionaryMapEntry<P,Q>com.webobjects.foundation.NSCoding._BigDecimalSupport, com.webobjects.foundation.NSCoding._BigIntegerSupport, com.webobjects.foundation.NSCoding._BooleanSupport, com.webobjects.foundation.NSCoding._ByteSupport, com.webobjects.foundation.NSCoding._CharacterSupport, com.webobjects.foundation.NSCoding._DateSupport, com.webobjects.foundation.NSCoding._DoubleSupport, com.webobjects.foundation.NSCoding._FloatSupport, com.webobjects.foundation.NSCoding._IntegerSupport, com.webobjects.foundation.NSCoding._LongSupport, com.webobjects.foundation.NSCoding._NumberSupport, com.webobjects.foundation.NSCoding._ShortSupport, com.webobjects.foundation.NSCoding._StringSupport, com.webobjects.foundation.NSCoding.Supportcom.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utilitycom.webobjects.foundation.NSKeyValueCoding._BooleanFieldBinding, com.webobjects.foundation.NSKeyValueCoding._BooleanMethodBinding, com.webobjects.foundation.NSKeyValueCoding._FieldBinding, com.webobjects.foundation.NSKeyValueCoding._ForwardingBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding._MethodBinding, com.webobjects.foundation.NSKeyValueCoding._NumberFieldBinding, com.webobjects.foundation.NSKeyValueCoding._NumberMethodBinding, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.MapImplementation, com.webobjects.foundation.NSKeyValueCoding.Null<T>, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor_CLASS_capacity, _count, _deletionLimit, _entrySetCache, _flags, _hashCache, _hashtableBuckets, _keys, _keysCache, _keySetCache, _MAP_ENTRY_CLASS, _NSDictionaryClassHashCode, _NSDictionaryMapEntryHashCode, _objects, _objectsCache, CheckForNull, EmptyDictionary, IgnoreNull| 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, size, takeValueForKeyPath, toString, valueForKey, valueForKeyPathfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic 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 com.webobjects.foundation.NSKeyValueCodingtakeValueForKey in class NSMutableDictionaryaValue - 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 – 2020 Project Wonder.