org.apache.tapestry.record
Interface PersistentPropertyDataEncoder

All Known Implementing Classes:
PersistentPropertyDataEncoderImpl

public interface PersistentPropertyDataEncoder

Responsible for encoding PropertyChanges into and out of plain strings.

Since:
4.0
Author:
Howard M. Lewis Ship

Method Summary
 List decodePageChanges(String encoded)
          Takes a string with an encoded set of page changes, and converts it back into a list of PropertyChanges.
 String encodePageChanges(List changes)
          Encodes a (possibly empty) list of PropertyChanges into a string representation that can later be decoded.
 

Method Detail

encodePageChanges

String encodePageChanges(List changes)
Encodes a (possibly empty) list of PropertyChanges into a string representation that can later be decoded.

Parameters:
changes - List of changes to encode into a persistable form.
Returns:
encoded string (possibly empty, but not null)

decodePageChanges

List decodePageChanges(String encoded)
Takes a string with an encoded set of page changes, and converts it back into a list of PropertyChanges.

Parameters:
encoded - The data to un-encode, which should be equivalent to the same that was passed in to encodePageChanges(java.util.List).
Returns:
The decoded page data.


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.