|
Project Wonder 5.0 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.webobjects.foundation.NSDictionary<K,V>
com.webobjects.foundation.NSMutableDictionary
er.extensions.appserver.ERXWOXMLCoder.XMLData
public static class ERXWOXMLCoder.XMLData
Quick and dirty class to en- and decode the generic xml data to full-flegded objects that can be bound in the edit interface.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.webobjects.foundation.NSDictionary |
|---|
com.webobjects.foundation.NSDictionary._JavaNSDictionaryMapEntry<P,Q> |
| Nested classes/interfaces inherited from interface com.webobjects.foundation.NSCoding |
|---|
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.Support |
| Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
|---|
com.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utility |
| Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCoding |
|---|
com.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.Null, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor |
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry<K,V> |
| Field Summary |
|---|
| Fields inherited from class com.webobjects.foundation.NSMutableDictionary |
|---|
_CLASS |
| Fields inherited from class com.webobjects.foundation.NSDictionary |
|---|
_capacity, _count, _deletionLimit, _entrySetCache, _flags, _hashCache, _hashtableBuckets, _keys, _keysCache, _keySetCache, _MAP_ENTRY_CLASS, _NSDictionaryClassHashCode, _NSDictionaryMapEntryHashCode, _objects, _objectsCache, CheckForNull, EmptyDictionary, IgnoreNull |
| Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
|---|
_KeyPathSeparatorChar, KeyPathSeparator |
| Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding |
|---|
NullValue |
| Constructor Summary | |
|---|---|
ERXWOXMLCoder.XMLData()
|
|
| Method Summary | |
|---|---|
protected void |
clearEmptyValueForKeyPath(java.lang.String key)
|
protected void |
clearParentOnEmptyValueForKeyPath(java.lang.String key)
|
void |
completeDecoding()
|
static ERXWOXMLCoder.XMLData |
dataForString(java.lang.String string,
java.lang.String mappingUrl)
Deserializes the given string to an instance of XMLData. |
void |
prepareForCoding()
|
static java.lang.String |
stringForData(ERXWOXMLCoder.XMLData data,
java.lang.String rootTag,
java.lang.String mappingUrl)
Serializes to an XML string for the given data object conforming to the supplied model. |
void |
takeValueForKey(java.lang.Object aValue,
java.lang.String aKey)
This works around a bug when the decoder reaches an emtpy tag an tries to create a dictionary from it. |
protected void |
takeValueForKeyPathIfNotPresent(java.lang.Object object,
java.lang.String key)
|
| Methods inherited from class com.webobjects.foundation.NSMutableDictionary |
|---|
addEntriesFromDictionary, clear, clone, immutableClone, mutableClone, put, putAll, remove, removeAllObjects, removeObjectForKey, removeObjectsForKeys, setDictionary, setObjectForKey, values |
| Methods inherited from class com.webobjects.foundation.NSDictionary |
|---|
_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, valueForKeyPath |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ERXWOXMLCoder.XMLData()
| Method Detail |
|---|
public void completeDecoding()
public void prepareForCoding()
protected void takeValueForKeyPathIfNotPresent(java.lang.Object object,
java.lang.String key)
protected void clearEmptyValueForKeyPath(java.lang.String key)
protected void clearParentOnEmptyValueForKeyPath(java.lang.String key)
public void takeValueForKey(java.lang.Object aValue,
java.lang.String aKey)
takeValueForKey in interface com.webobjects.foundation.NSKeyValueCodingtakeValueForKey in class com.webobjects.foundation.NSMutableDictionary
public static java.lang.String stringForData(ERXWOXMLCoder.XMLData data,
java.lang.String rootTag,
java.lang.String mappingUrl)
public static ERXWOXMLCoder.XMLData dataForString(java.lang.String string,
java.lang.String mappingUrl)
string - mappingUrl -
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||