
M - the model type to return from the readerBase - an intermediate type that represents the data passed in as XML.
May be the same as Mpublic class XmlReader<M,Base> extends AbstractAutoBeanReader<M,Base,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
com.google.web.bindery.autobean.shared.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.
| Modifier and Type | Class and Description |
|---|---|
static class |
XmlReader.XmlSplittable
A
Splittable for XML data. |
| Constructor and Description |
|---|
XmlReader(AutoBeanFactory factory,
Class<Base> rootBeanType)
Creates a new XML reader that can turn XML into an AutoBean.
|
| Modifier and Type | Method and Description |
|---|---|
protected Splittable |
readSplittable(Object loadConfig,
String data)
Implemented by subclasses to provide a
Splittable based on the
incoming data. |
createReturnData, readprotected Splittable readSplittable(Object loadConfig, String data)
AbstractAutoBeanReaderSplittable based on the
incoming data.readSplittable in class AbstractAutoBeanReader<M,Base,String>loadConfig - the load configdata - the data to readCopyright © 2018. All rights reserved.