com.sencha.gxt.data.shared.writer
Class JsonWriter<M>

java.lang.Object
  extended by com.sencha.gxt.data.shared.writer.AutoBeanWriter<M,java.lang.String>
      extended by com.sencha.gxt.data.shared.writer.JsonWriter<M>
Type Parameters:
M - the starting data format for the model to be inputed
All Implemented Interfaces:
DataWriter<M,java.lang.String>

public class JsonWriter<M>
extends AutoBeanWriter<M,java.lang.String>

An AutoBeanWriter that writes an auto bean into Json.


Constructor Summary
JsonWriter(AutoBeanFactory factory, java.lang.Class<M> clazz)
          Creates a new JSON writer for auto beans.
 
Method Summary
 java.lang.String write(M model)
          Converts a source model to its equivalent target type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonWriter

public JsonWriter(AutoBeanFactory factory,
                  java.lang.Class<M> clazz)
Creates a new JSON writer for auto beans.

Parameters:
factory - the auto bean factory
clazz - the target class
Method Detail

write

public java.lang.String write(M model)
Description copied from interface: DataWriter
Converts a source model to its equivalent target type.

Parameters:
model - the source model
Returns:
the equivalent target type


Copyright © 2012. All Rights Reserved.