NextApp Echo3
v3.0.b4

nextapp.echo.app.serial
Class SerialUtil

java.lang.Object
  extended by nextapp.echo.app.serial.SerialUtil

public class SerialUtil
extends java.lang.Object

Serialization utilities.


Constructor Summary
SerialUtil()
           
 
Method Summary
static void toXml(Context context, java.lang.Class objectClass, org.w3c.dom.Element parentElement, java.lang.String propertyName, java.lang.Object propertyValue)
          Translates an arbitrary property to XML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerialUtil

public SerialUtil()
Method Detail

toXml

public static void toXml(Context context,
                         java.lang.Class objectClass,
                         org.w3c.dom.Element parentElement,
                         java.lang.String propertyName,
                         java.lang.Object propertyValue)
                  throws SerialException
Translates an arbitrary property to XML. The appropriate peer for the property will be retrieved and the property will be handed to it for processing. An XML representation of the property will be added as a child to the specified parentElement.

Parameters:
context - the relevant Context (must provide a SerialContext and a PropertyPeerFactory)
objectClass - the class on which the property is set.
parentElement - the XML element to which the property value's XML representation will be added as a child
propertyName - the name of the property
propertyValue - the value of the property
Throws:
SerialException

NextApp Echo3
v3.0.b4