NextApp Echo3
v3.0.b4

nextapp.echo.app.serial.property
Class InsetsPeer

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

public class InsetsPeer
extends java.lang.Object
implements SerialPropertyPeer

SerialPropertyPeer for Insets properties.


Constructor Summary
InsetsPeer()
           
 
Method Summary
static Insets fromString(java.lang.String value)
          Generates an Insets property from a string representation.
 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.
static java.lang.String toString(Insets insets)
          Generates a string representation of an Insets property.
 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

InsetsPeer

public InsetsPeer()
Method Detail

fromString

public static Insets fromString(java.lang.String value)
                         throws SerialException
Generates an Insets property from a string representation.

Parameters:
value - the string representation
Returns:
the generated Insets value
Throws:
SerialException - if the provided string representation is not valid

toString

public static java.lang.String toString(Insets insets)
                                 throws SerialException
Generates a string representation of an Insets property.

Parameters:
insets - the Insets property
Returns:
a string representation
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(Context, 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