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
public class XmlReader<M,Base> extends AbstractAutoBeanReader<M,Base,String>
DataReaderimplementation that reads XML data and build it into the given
AutoBeantype, using other types from the given factory. These AutoBean interfaces should use
AutoBean.PropertyNameto 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.
|Modifier and Type||Class and Description|
|Constructor and Description|
Creates a new XML reader that can turn XML into an AutoBean.
public XmlReader(com.google.web.bindery.autobean.shared.AutoBeanFactory factory, Class<Base> rootBeanType)
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.