com.sencha.gxt.data.client.writer
Class XmlWriter<M>
java.lang.Object
com.sencha.gxt.data.shared.writer.AutoBeanWriter<M,java.lang.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,java.lang.String>
public class XmlWriter<M>
- extends AutoBeanWriter<M,java.lang.String>
A AutoBeanWriter that outputs XML.
|
Constructor Summary |
XmlWriter(AutoBeanFactory factory,
java.lang.Class<M> clazz,
java.lang.String rootTag)
Creates a new XML writer that can format an object into XML. |
|
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 |
XmlWriter
public XmlWriter(AutoBeanFactory factory,
java.lang.Class<M> clazz,
java.lang.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 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.