NextApp Echo3
v3.0.b4

nextapp.echo.app.serial.property
Class FillImagePeer

java.lang.Object
  extended by nextapp.echo.app.serial.property.FillImagePeer
All Implemented Interfaces:
SerialPropertyPeer

public class FillImagePeer
extends java.lang.Object
implements SerialPropertyPeer

SerialPropertyPeer for FillImage properties.


Constructor Summary
FillImagePeer()
           
 
Method Summary
 FillImage fromElement(Context context, org.w3c.dom.Element fiElement)
          Generates a FillImage based on a <fi> DOM element.
 org.w3c.dom.Element toElement(Context context, FillImage fillImage)
          Generates a <fi> DOM element representing a fill image.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FillImagePeer

public FillImagePeer()
Method Detail

toElement

public org.w3c.dom.Element toElement(Context context,
                                     FillImage fillImage)
                              throws SerialException
Generates a <fi> DOM element representing a fill image. This method is used internally and for FillImageBorder serialization.

Parameters:
context - a Context object which provides a SerialContext and PropertyPeerFactory
fillImage - the FillImage to render
Returns:
a generated <fi> element representing the fill image
Throws:
SerialException

fromElement

public FillImage fromElement(Context context,
                             org.w3c.dom.Element fiElement)
                      throws SerialException
Generates a FillImage based on a <fi> DOM element. This method is used internally and for FillImageBorder serialization.

Parameters:
context - a Context object which provides a SerialContext and PropertyPeerFactory
fiElement - the <fi> element to parse
Returns:
a FillImage representation of the element
Throws:
SerialException

toProperty

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

Specified by:
toProperty in interface SerialPropertyPeer
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.
See Also:
SerialPropertyPeer.toProperty(nextapp.echo.app.util.Context, java.lang.Class, org.w3c.dom.Element)

toXml

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

Specified by:
toXml in interface SerialPropertyPeer
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
See Also:
SerialPropertyPeer.toXml(nextapp.echo.app.util.Context, java.lang.Class, org.w3c.dom.Element, java.lang.Object)

NextApp Echo3
v3.0.b4