com.sencha.gxt.data.client.writer
Class XmlWriter<M>
java.lang.Object
com.sencha.gxt.data.shared.writer.AutoBeanWriter<M,String>
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. |
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 Mclazz - the class to writerootTag - the root tag of the XML document
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.