PropertyAdapter

Construct a PropertyAdapter. <p/> Note: This constructor may narrow the specified property type to match the declared property accessor return type; therefore, subclasses should not assume that the specified property type will be equal to that returned by the getType() method.

readXml

Deserialize an object from XML. Note that the parent element is the one passed to this method; this method is responsible for finding all of the necessarily elements within the parent element. This method is intended to allow collection properties to read their data from multiple XML elements.

Parameters:

xml - the XML element containing the XML elements to deserialize from

Returns:

the object deserialized from the XML (may be null)

writeXml

Serialize an object into an XML element. Note that the parent element is the one passed to this method; this method is responsible for creating the necessarily elements within the parent element. This method is intended to allow collection properties to write their data to multiple XML elements.

Parameters:

xml - the XML element containing the XML elements to serialize to

o - the object to serialize (may be null)

fromUri

public java.lang.Object fromUri(java.lang.String sUri)

Deserialize an object from a URI element.

Parameters:

sUri - the URI element to deserialize from

Returns:

the object deserialized from the URI element

Throws:

java.lang.UnsupportedOperationException - if the property cannot be read from a URI element

toUri

public java.lang.String toUri(java.lang.Object o)

Serialize an object into a URI element.

Parameters:

o - the object to serialize

Returns:

the URI element representing the serialized form of the passed object

Throws:

java.lang.UnsupportedOperationException - if the property cannot be written to a URI element