ERXWOXMLCoder.XMLData Class Reference

Inherits com::webobjects::foundation::NSMutableDictionary.

Collaboration diagram for ERXWOXMLCoder.XMLData:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void completeDecoding ()
void prepareForCoding ()
void takeValueForKey (Object aValue, String aKey)
 XMLData ()

Static Public Member Functions

static XMLData dataForString (String string, String mappingUrl)
static String stringForData (XMLData data, String rootTag, String mappingUrl)

Protected Member Functions

void clearEmptyValueForKeyPath (String key)
void clearParentOnEmptyValueForKeyPath (String key)
void takeValueForKeyPathIfNotPresent (Object object, String key)


Detailed Description

Quick and dirty class to en- and decode the generic xml data to full-flegded objects that can be bound in the edit interface.

Author:
ak

Constructor & Destructor Documentation

XMLData (  ) 


Member Function Documentation

void clearEmptyValueForKeyPath ( String  key  )  [protected]

void clearParentOnEmptyValueForKeyPath ( String  key  )  [protected]

void completeDecoding (  ) 

static XMLData dataForString ( String  string,
String  mappingUrl 
) [static]

Deserializes the given string to an instance of XMLData.

Parameters:
string 
mappingUrl 

void prepareForCoding (  ) 

static String stringForData ( XMLData  data,
String  rootTag,
String  mappingUrl 
) [static]

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 emtpy tag an tries to create a dictionary from it.

void takeValueForKeyPathIfNotPresent ( Object  object,
String  key 
) [protected]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:02 2012 for Project Wonder by  doxygen 1.5.8