com.sencha.gxt.data.client.writer
Class XmlWriter<M>

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

public class XmlWriter<M>
extends AutoBeanWriter<M,String>

A AutoBeanWriter that outputs XML.


Constructor Summary
XmlWriter(com.google.web.bindery.autobean.shared.AutoBeanFactory factory, Class<M> clazz, String rootTag)
          Creates a new XML writer that can format an object into XML.
 
Method Summary
 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

XmlWriter

public XmlWriter(com.google.web.bindery.autobean.shared.AutoBeanFactory factory,
                 Class<M> clazz,
                 String rootTag)
Creates a new XML writer that can format an object into XML.

Parameters:
factory - an auto bean factory that can decode objects of type M
clazz - the class to write
rootTag - the root tag of the XML document
Method Detail

write

public 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.