NextApp Echo3
v3.0.b4

nextapp.echo.webcontainer.sync.property
Class HttpImageReferencePeer

java.lang.Object
  extended by nextapp.echo.webcontainer.sync.property.HttpImageReferencePeer
All Implemented Interfaces:
nextapp.echo.app.serial.property.ImageReferencePeer, nextapp.echo.app.serial.SerialPropertyPeer

public class HttpImageReferencePeer
extends java.lang.Object
implements nextapp.echo.app.serial.property.ImageReferencePeer

ImageReferencePeer for HttpImageReference properties.


Constructor Summary
HttpImageReferencePeer()
           
 
Method Summary
 java.lang.String getImageUrl(nextapp.echo.app.util.Context context, nextapp.echo.app.ImageReference imageReference)
          Returns the URI of an image.
 java.lang.Object toProperty(nextapp.echo.app.util.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(nextapp.echo.app.util.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

HttpImageReferencePeer

public HttpImageReferencePeer()
Method Detail

getImageUrl

public java.lang.String getImageUrl(nextapp.echo.app.util.Context context,
                                    nextapp.echo.app.ImageReference imageReference)
                             throws nextapp.echo.app.serial.SerialException
Description copied from interface: nextapp.echo.app.serial.property.ImageReferencePeer
Returns the URI of an image.

Specified by:
getImageUrl in interface nextapp.echo.app.serial.property.ImageReferencePeer
Parameters:
context - the relevant Context
imageReference - the ImageReference to be rendered
Returns:
the URI of the image
Throws:
nextapp.echo.app.serial.SerialException
See Also:
ImageReferencePeer.getImageUrl( nextapp.echo.app.util.Context, nextapp.echo.app.ImageReference)

toProperty

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

Specified by:
toProperty in interface nextapp.echo.app.serial.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:
nextapp.echo.app.serial.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(nextapp.echo.app.util.Context context,
                  java.lang.Class objectClass,
                  org.w3c.dom.Element propertyElement,
                  java.lang.Object propertyValue)
           throws nextapp.echo.app.serial.SerialException
Description copied from interface: nextapp.echo.app.serial.SerialPropertyPeer
Translates an object to an XML representation of a property.

Specified by:
toXml in interface nextapp.echo.app.serial.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:
nextapp.echo.app.serial.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