com.sencha.gxt.data.client.loader
Class XmlReader<M,Base>

java.lang.Object
  extended by com.sencha.gxt.data.shared.loader.AbstractAutoBeanReader<M,Base,java.lang.String>
      extended by com.sencha.gxt.data.client.loader.XmlReader<M,Base>
Type Parameters:
M - the model type to return from the reader
Base - an intermediate type that represents the data passed in as XML. May be the same as M
All Implemented Interfaces:
DataReader<M,java.lang.String>

public class XmlReader<M,Base>
extends AbstractAutoBeanReader<M,Base,java.lang.String>

A DataReader implementation that reads XML data and build it into the given AutoBean type, using other types from the given factory.

These AutoBean interfaces should use AutoBean.PropertyName to specify the path to properties. Collections can be referenced by specifying the path to the items.

Subclasses can override AbstractAutoBeanReader.createReturnData(Object, Object) to control what object is returned by the reader.


Nested Class Summary
static class XmlReader.XmlSplittable
          A Splittable for XML data.
 
Constructor Summary
XmlReader(AutoBeanFactory factory, java.lang.Class<Base> rootBeanType)
          Creates a new XML reader that can turn XML into an AutoBean.
 
Method Summary
 
Methods inherited from class com.sencha.gxt.data.shared.loader.AbstractAutoBeanReader
read
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlReader

public XmlReader(AutoBeanFactory factory,
                 java.lang.Class<Base> rootBeanType)
Creates a new XML reader that can turn XML into an AutoBean.

Parameters:
factory - an auto bean factory capable of encoding objects of type M
rootBeanType - AutoBean based type to represent the base data


Copyright © 2012. All Rights Reserved.