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 childpropertyName - the name of the propertypropertyValue - the value of the property
- Throws:
SerialException