Revision: 9175
Author: [email protected]
Date: Tue Nov  2 05:23:24 2010
Log: Edited wiki page AutoBean through web user interface.
http://code.google.com/p/google-web-toolkit/source/detail?r=9175

Modified:
 /wiki/AutoBean.wiki

=======================================
--- /wiki/AutoBean.wiki Mon Nov  1 07:15:16 2010
+++ /wiki/AutoBean.wiki Tue Nov  2 05:23:24 2010
@@ -11,7 +11,7 @@
   * Decrease boilerplate in model-rich applications
   * Support easy encoding of AutoBeans to JSON structures
   * Provide support code for common operations on data-model objects
-  * Usable in non-GWT code
+  * Usable in non-GWT (e.g. server) code

 == Non-goals ==

@@ -75,6 +75,7 @@
   * Reference types:
     * Bean-like interfaces
     * Lists or Sets of any supported property type
+    * Maps of any supported property type


 == !AutoBean ==
@@ -157,7 +158,11 @@

 === visitReferenceProperty() / visitValueProperty() ===

-The property visitation methods in an `AutoBeanVisitor` type will receive a `PropertyContext` object that allows the value of the property to be mutated as well as providing type information about the field. If a reference property being visited extends `Collection` the single parameterization of that type will be provided. Calling the `canSet()` method before calling `set()` promotes good code hygiene. +The property visitation methods in an `AutoBeanVisitor` type will receive a `PropertyContext` object that allows the value of the property to be mutated as well as providing type information about the field. Calling the `canSet()` method before calling `set()` promotes good code hygiene.
+
+=== visitCollectionProperty() / visitMapProperty() ===
+
+These visitation methods behave similarly to `visitReferenceProperty()` however the `PropertyContext` passed into these methods is specialized to provide the parameterization of the `Collection` or `Map` object.

 == !AutoBeanUtils ==

@@ -183,8 +188,6 @@
 {{{
 [ { "name" : "John Doe" } , { "name" : "Jim Smith" } ]
 }}}
-
-* Maps are not yet implemented *

Maps are serialized in two forms based on wether or not the key type is a value or reference type. Value maps are encoded as a typical JSON object. For example, a `Map<Integer, Foo>` would be encoded as
 {{{

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to