NextApp Echo3
v3.0.b4

nextapp.echo.app.serial
Interface SerialPropertyPeer

All Known Subinterfaces:
ImageReferencePeer
All Known Implementing Classes:
AlignmentPeer, BooleanPeer, BorderPeer, CellLayoutDataPeer, ColorPeer, ColumnLayoutDataPeer, DatePeer, ExtentPeer, FillImageBorderPeer, FillImagePeer, FontPeer, GridLayoutDataPeer, InsetsPeer, IntegerPeer, LayoutDataPeer, MapPeer, ResourceImageReferencePeer, RowLayoutDataPeer, SplitPaneLayoutDataPeer, StringPeer

public interface SerialPropertyPeer

Peer to serialize and deserialize property objects between Java and XML.


Method Summary
 java.lang.Object toProperty(Context context, java.lang.Class objectClass, org.w3c.dom.Element propertyElement)
          Translates an XML representation of a property to a property value object.
 void toXml(Context context, java.lang.Class objectClass, org.w3c.dom.Element propertyElement, java.lang.Object propertyValue)
          Translates an object to an XML representation of a property.
 

Method Detail

toProperty

java.lang.Object toProperty(Context context,
                            java.lang.Class objectClass,
                            org.w3c.dom.Element propertyElement)
                            throws SerialException
Translates an XML representation of a property to a property value object.

Parameters:
context - the relevant Context
objectClass - the class of the property value
propertyElement - the XML <p> element to process
Returns:
the property value
Throws:
SerialException - when the property cannot be de-serialized.

toXml

void toXml(Context context,
           java.lang.Class objectClass,
           org.w3c.dom.Element propertyElement,
           java.lang.Object propertyValue)
           throws SerialException
Translates an object to an XML representation of a property.

Parameters:
context - the relevant context
objectClass - the class of the property value
propertyElement - the XML <p> element in which the property value should be rendered
propertyValue - the property value
Throws:
SerialException

NextApp Echo3
v3.0.b4